Top Description Methods
com.amazon.ion.impl

pack-priv Interface ByteWriter

Known Direct Implementers
com.amazon.ion.impl.SimpleByteBuffer.UserByteWriter, com.amazon.ion.impl.SimpleByteBuffer.SimpleByteWriter
Imports
java.io.IOException, java.math.BigDecimal

Interface to write Ion value to bytes over a variety of destinations. Avoiding the Java standard overhead in so far as possible. This requires the ability to access any part of the underlying data source randomly and insert space at any position. However forward access is expected to be the standard direction.

Method Summary

Modifier and TypeMethod and Description
public void
insert(int length)

public int
public void
position(int newPosition)

public void
remove(int length)

public void
write(byte b)

public void
write(byte[] dst, int start, int len)

public int
public int
writeFloat(double value)

public int
writeIonInt(long value, int len)

public int
writeIonInt(int value, int len)

public int
public void
writeTypeDesc(int typeDescByte)

public int
writeTypeDescWithLength(int typeid, int lenOfLength, int valueLength)

public int
writeTypeDescWithLength(int typeid, int valueLength)

public int
writeVarInt(long value, int len, boolean force_zero_write)

public int
writeVarInt(int value, int len, boolean force_zero_write)

public int
writeVarUInt(long value, int len, boolean force_zero_write)

public int
writeVarUInt(int value, int len, boolean force_zero_write)

Method Detail

insertback to summary
public void insert(int length)
positionback to summary
public int position()
positionback to summary
public void position(int newPosition)
removeback to summary
public void remove(int length)
writeback to summary
public void write(byte b) throws IOException
writeback to summary
public void write(byte[] dst, int start, int len) throws IOException
writeDecimalback to summary
public int writeDecimal(BigDecimal value) throws IOException
writeFloatback to summary
public int writeFloat(double value) throws IOException
writeIonIntback to summary
public int writeIonInt(long value, int len) throws IOException
writeIonIntback to summary
public int writeIonInt(int value, int len) throws IOException
writeStringback to summary
public int writeString(String value) throws IOException
writeTypeDescback to summary
public void writeTypeDesc(int typeDescByte) throws IOException
writeTypeDescWithLengthback to summary
public int writeTypeDescWithLength(int typeid, int lenOfLength, int valueLength) throws IOException
writeTypeDescWithLengthback to summary
public int writeTypeDescWithLength(int typeid, int valueLength) throws IOException
writeVarIntback to summary
public int writeVarInt(long value, int len, boolean force_zero_write) throws IOException
writeVarIntback to summary
public int writeVarInt(int value, int len, boolean force_zero_write) throws IOException
writeVarUIntback to summary
public int writeVarUInt(long value, int len, boolean force_zero_write) throws IOException
writeVarUIntback to summary
public int writeVarUInt(int value, int len, boolean force_zero_write) throws IOException