Package com.amazon.ion
Interface IonClob
An Ion
clob value.
WARNING: This interface should not be implemented or extended by code outside of this library.
-
Field Summary
Fields inherited from interface com.amazon.ion.IonValue
EMPTY_ARRAY -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a copy of this value and all of its children.Creates a newReaderthat provides the value of this clob as text, decoding the raw bytes using a given character set.stringValue(Charset cs) Gets the value of this clob as a JavaStringvalue, decoding the raw bytes using a given character set.Methods inherited from interface com.amazon.ion.IonLob
byteSize, getBytes, newInputStream, setBytes, setBytesMethods inherited from interface com.amazon.ion.IonValue
accept, addTypeAnnotation, clearTypeAnnotations, equals, getContainer, getFieldId, getFieldName, getFieldNameSymbol, getSymbolTable, getSystem, getType, getTypeAnnotations, getTypeAnnotationSymbols, hashCode, hasTypeAnnotation, isNullValue, isReadOnly, makeReadOnly, removeFromContainer, removeTypeAnnotation, setTypeAnnotations, setTypeAnnotationSymbols, topLevelValue, toPrettyString, toString, toString, writeTo
-
Method Details
-
newReader
Creates a newReaderthat provides the value of this clob as text, decoding the raw bytes using a given character set.- Parameters:
cs- must not benull.- Returns:
- a new reader positioned at the start of the clob,
or
nullifthis.isNullValue().
-
stringValue
Gets the value of this clob as a JavaStringvalue, decoding the raw bytes using a given character set. This is a convenience wrapper aroundnewReader(Charset).The behavior of this method when the clob bytes are not valid in the given charset is unspecified.
- Parameters:
cs- must not benull.- Returns:
- the decoded text,
or
nullifthis.isNullValue().
-
clone
Description copied from interface:IonValueCreates a copy of this value and all of its children. The cloned value may use the same shared symbol tables, but it will have an independent local symbol table if necessary. The cloned value will be modifiable regardless of whether this instanceIonValue.isReadOnly().The cloned value will be created in the context of the same
ValueFactoryas this instance; if you want a copy using a different factory, then useValueFactory.clone(IonValue)instead.- Specified by:
clonein interfaceIonLob- Specified by:
clonein interfaceIonValue- Throws:
UnknownSymbolException- if any part of this value has unknown text but known Sid for its field name, annotation or symbol.
-