public class OsnSerializer extends Object
| Constructor and Description |
|---|
OsnSerializer(String path,
File file,
long maxSize,
OsnConverterRegistry converters) |
| Modifier and Type | Method and Description |
|---|---|
void |
attribute(String name,
double value,
boolean endLine) |
void |
attribute(String name,
Object value,
boolean endLine) |
void |
attributeEnum(String name,
String value,
boolean endLine) |
void |
attributeValue(Object value) |
void |
close() |
void |
endAttribute() |
void |
endCollection() |
void |
endLine() |
void |
endObject() |
void |
fieldName(String name) |
boolean |
isIndentEnabled() |
void |
serialize(List<Object> list) |
void |
serialize(Record object) |
void |
serialize(Set<Object> set) |
void |
serialize(String string) |
void |
serializeAttribute(String name,
Object value) |
void |
serializeAttributes(Record object) |
void |
serializeIndent() |
void |
serializeRecord(Record object) |
void |
serializeStartObject(Record object) |
void |
serializeValue(Object value) |
void |
setIndentEnabled(boolean indentEnabled) |
void |
startCollection(String name) |
void |
startObject(String path) |
String |
toString() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
write(String s) |
public OsnSerializer(String path, File file, long maxSize, OsnConverterRegistry converters) throws IOException
IOExceptionpublic void attribute(String name, double value, boolean endLine) throws IOException
IOExceptionpublic void attribute(String name, Object value, boolean endLine) throws IOException
IOExceptionpublic void attributeEnum(String name, String value, boolean endLine) throws IOException
IOExceptionpublic void attributeValue(Object value) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void endAttribute()
public void endCollection()
throws IOException
IOExceptionpublic void endLine()
throws IOException
IOExceptionpublic void endObject()
throws IOException
IOExceptionpublic void fieldName(String name) throws IOException
IOExceptionpublic boolean isIndentEnabled()
public void serialize(List<Object> list) throws IOException
IOExceptionpublic void serialize(Record object) throws IOException
IOExceptionpublic void serialize(Set<Object> set) throws IOException
IOExceptionpublic void serialize(String string) throws IOException
IOExceptionpublic void serializeAttribute(String name, Object value) throws IOException
IOExceptionpublic void serializeAttributes(Record object) throws IOException
IOExceptionpublic void serializeIndent()
throws IOException
IOExceptionpublic void serializeRecord(Record object) throws IOException
IOExceptionpublic void serializeStartObject(Record object) throws IOException
IOExceptionpublic void serializeValue(Object value) throws IOException
IOExceptionpublic void setIndentEnabled(boolean indentEnabled)
public void startCollection(String name) throws IOException
IOExceptionpublic void startObject(String path) throws IOException
IOExceptionpublic void write(byte[] b)
throws IOException
IOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
IOExceptionpublic void write(int b)
throws IOException
IOExceptionpublic void write(String s) throws IOException
IOExceptionCopyright © 2015 Revolution Systems Inc.. All rights reserved.