Package com.amazon.ion.impl.bin
Interface _Private_IonRawWriter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddTypeAnnotationSymbol(int sid)Deprecated.Adds the given symbol ID to the list of pending annotation symbol IDs.voidsetFieldNameSymbol(int sid)Deprecated.Sets the current field name to the given symbol ID.voidsetTypeAnnotationSymbols(int... sids)Deprecated.Sets the full list of pending annotations to the given symbol IDs.voidwriteString(byte[] data, int offset, int length)Deprecated.Writes a portion of the byte array out as an IonString value.voidwriteSymbolToken(int sid)Deprecated.Directly write the given symbol ID to represent a symbol value.-
Methods inherited from interface com.amazon.ion.IonWriter
addTypeAnnotation, close, finish, flush, getSymbolTable, isInStruct, setFieldName, setFieldNameSymbol, setTypeAnnotations, setTypeAnnotationSymbols, stepIn, stepOut, writeBlob, writeBlob, writeBool, writeClob, writeClob, writeDecimal, writeFloat, writeInt, writeInt, writeNull, writeNull, writeString, writeSymbol, writeSymbolToken, writeTimestamp, writeTimestampUTC, writeValue, writeValue, writeValues
-
-
-
-
Method Detail
-
setFieldNameSymbol
void setFieldNameSymbol(int sid)
Deprecated.Sets the current field name to the given symbol ID. It is up to the caller to make sure the given symbol ID has a mapping in the current context's symbol table. The pending field name symbol is cleared when the current value is written via stepIn() or one of the write*() methods.- Parameters:
sid- - a symbol ID
-
setTypeAnnotationSymbols
void setTypeAnnotationSymbols(int... sids)
Deprecated.Sets the full list of pending annotations to the given symbol IDs. Any pending annotation symbol IDs are cleared. It is up to the caller to make sure the given symbol IDs have mappings in the current context's symbol table. The contents of the given array are copied into this writer, so the caller does not need to preserve the array. The list of pending annotation symbol IDs is cleared when the current value is written via stepIn() or one of the write*() methods.- Parameters:
sids- - symbol IDs representing the annotation symbols for the current value
-
addTypeAnnotationSymbol
void addTypeAnnotationSymbol(int sid)
Deprecated.Adds the given symbol ID to the list of pending annotation symbol IDs. It is up to the caller to make sure the given symbol ID has a mapping in the current context's symbol table. The list of pending annotation symbol IDs is cleared when the current value is written via stepIn() or one of the write*() methods.- Parameters:
sid- - a symbol ID
-
writeSymbolToken
void writeSymbolToken(int sid) throws java.io.IOExceptionDeprecated.Directly write the given symbol ID to represent a symbol value. It is up to the caller to make sure the given symbol ID has a mapping in the current context's symbol table.- Parameters:
sid- - a symbol ID- Throws:
java.io.IOException
-
writeString
void writeString(byte[] data, int offset, int length) throws java.io.IOExceptionDeprecated.Writes a portion of the byte array out as an IonString value. This copies the portion of the byte array that is written.- Parameters:
data- well-formed UTF-8-encoded bytes to be written. May benullto representnull.string.offset- offset of the first byte in value to writelength- number of bytes to write from value- Throws:
java.io.IOException- See Also:
IonWriter.writeClob(byte[], int, int),IonWriter.writeBlob(byte[], int, int)
-
-