You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SerialX-core/src/main/java/org/ugp/serialx/Scope.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,7 @@ public Scope clone()
116
116
}
117
117
118
118
/**
119
-
* @param objClass | Class of object to create using protocols.
119
+
* @param objClass | Class of object to create using protocols (may or may not support other implementations of {@link Type}).
120
120
* @param protocolsToUse | Registry of protocols to use.
121
121
*
122
122
* @return Object of objClass constructed from this scopes independent values using protocol for objClass or null if there was no protocol found in protocolsToUse!
Copy file name to clipboardExpand all lines: SerialX-core/src/main/java/org/ugp/serialx/Serializer.java
+19-6Lines changed: 19 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@
19
19
importjava.io.OutputStreamWriter;
20
20
importjava.io.Reader;
21
21
importjava.io.StringReader;
22
+
importjava.io.Writer;
22
23
importjava.lang.reflect.Type;
23
24
importjava.net.HttpURLConnection;
24
25
importjava.net.URL;
@@ -160,7 +161,7 @@ public <T> T toObjectOf(String variableWithscope, Class<T> objClass, T defaultVa
160
161
}
161
162
162
163
/**
163
-
* @param type | Class of object to create.
164
+
* @param objClass | Class of object to create (may or may not support other implementations of {@link Type}).
164
165
*
165
166
* @return Object of type constructed from this scopes independent values using protocol for given class or null if there was no protocol found in this {@link Serializer#getProtocols()}!
166
167
*
@@ -283,11 +284,25 @@ public void SerializeTo(File f) throws IOException
@@ -305,7 +320,7 @@ public String Stringify(Object... args) throws IOException
305
320
}
306
321
307
322
/**
308
-
* @param source | Source {@link OutputStream} to serialize variables and objects into!
323
+
* @param outputStream | Source {@link OutputStream} to serialize variables and objects into!
309
324
* @param args | Additional arguments to use, exact usage and behavior of them is based on specific implementation of this function (they should not be serialized)!
310
325
*
311
326
* @return Source {@link OutputStream} with variables and objects serialized in specific format (may or may not be flushed).
@@ -382,10 +397,8 @@ public <S extends Scope> S LoadFrom(InputStream stream, Object... parserArgs)
382
397
383
398
/**
384
399
* @param reader | Any {@link Reader} with serialized objects in specific format to load.
385
-
* @param parserArgs | Additional arguments to use, exact usage and behavior of them is based on specific implementation of this function (probably used for formating of incoming information)!
386
400
*
387
-
* @return Unserialized objects and variables in {@link Scope} or empty {@link Scope} if string is empty.
388
-
* You can use negative indexes to get objects from back of this array since 1.1.0 (-1 = last element)!
401
+
* @return This scope after loading data from reader (you most likely want to return "this")!
0 commit comments