Interface _Private_IonRawWriter

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable, Faceted, java.io.Flushable, IonWriter

    @Deprecated
    public interface _Private_IonRawWriter
    extends IonWriter
    Deprecated.
    This is a private API subject to change without notice.
    An IonWriter with no symbol table management.
    • 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.IOException
        Deprecated.
        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.IOException
        Deprecated.
        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 be null to represent null.string.
        offset - offset of the first byte in value to write
        length - number of bytes to write from value
        Throws:
        java.io.IOException
        See Also:
        IonWriter.writeClob(byte[], int, int), IonWriter.writeBlob(byte[], int, int)