EMPTY_ARRAY| Modifier and Type | Method and Description |
|---|---|
int |
byteSize()
Gets the size in bytes of this lob.
|
IonLob |
clone()
Creates a copy of this value and all of its children.
|
byte[] |
getBytes()
Gets all the data of this lob, or
null if this is an Ion
null value. |
InputStream |
newInputStream()
Creates a new
InputStream that returns the data as raw
bytes. |
void |
setBytes(byte[] bytes)
Sets the data of this lob, copying bytes from an array.
|
void |
setBytes(byte[] bytes,
int offset,
int length)
Sets the data of this lob, copying bytes from part of an array.
|
accept, addTypeAnnotation, clearTypeAnnotations, equals, getContainer, getFieldName, getFieldNameSymbol, getSymbolTable, getSystem, getType, getTypeAnnotations, getTypeAnnotationSymbols, hashCode, hasTypeAnnotation, isNullValue, isReadOnly, makeReadOnly, removeFromContainer, removeTypeAnnotation, setTypeAnnotations, setTypeAnnotationSymbols, topLevelValue, toPrettyString, toString, toString, writeToInputStream newInputStream()
InputStream that returns the data as raw
bytes.null if this.isNullValue().byte[] getBytes()
null if this is an Ion
null value.null if this.isNullValue().void setBytes(byte[] bytes)
bytes - the new data for the lob;
may be null to make this an Ion null value.void setBytes(byte[] bytes,
int offset,
int length)
This method copies length bytes from the given array into this
value, starting at the given offset in the array.
bytes - the new data for the lob;
may be null to make this an Ion null value.offset - the offset within the array of the first byte to copy;
must be non-negative and no larger than bytes.length.length - the number of bytes to be copied from the given array;
must be non-negative and no larger than bytes.length - offset.IndexOutOfBoundsException - if the preconditions on the offset and length parameters
are not met.int byteSize()
IonLob clone() throws UnknownSymbolException
IonValueIonValue.isReadOnly().
The cloned value will be created in the context of the same
ValueFactory as this instance; if you want a copy using a
different factory, then use ValueFactory.clone(IonValue)
instead.
clone in interface IonValueUnknownSymbolException - if any part of this value has unknown text but known Sid for
its field name, annotation or symbol.