File tree 2 files changed +16
-1
lines changed
src/main/java/com/marcospassos/phpserializer
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ public class Writer
28
28
*/
29
29
private WriterState state ;
30
30
31
+ /**
32
+ * The current sub writer.
33
+ */
31
34
private Writer subWriter ;
32
35
33
36
/**
@@ -66,6 +69,15 @@ public String getResult()
66
69
*
67
70
* @return A writer to be used to custom write the serializable object.
68
71
*/
72
+
73
+ /**
74
+ * Writes the start of an object to the buffer and returns an object-level
75
+ * sub writer.
76
+ *
77
+ * @param className The fully-qualified name of the class.
78
+ *
79
+ * @return An object-level sub writer to write the object's data.
80
+ */
69
81
public Writer writeSerializableObjectStart (String className )
70
82
{
71
83
setState (state .serializableBegin ());
@@ -81,6 +93,9 @@ public Writer writeSerializableObjectStart(String className)
81
93
return subWriter ;
82
94
}
83
95
96
+ /**
97
+ * Writes the end of a serializable object to the buffer.
98
+ */
84
99
void writeSerializableObjectEnd () {
85
100
setState (state .serializableEnd ());
86
101
Original file line number Diff line number Diff line change 4
4
import com .marcospassos .phpserializer .WriterState ;
5
5
6
6
/**
7
- * Represents the state of the writer while writing an object.
7
+ * Represents the state of the writer while writing a serializable object.
8
8
*
9
9
* @author Marcos Passos
10
10
* @since 1.0
You can’t perform that action at this time.
0 commit comments