Package com.amazon.ion
Interface IonClob
-
-
Field Summary
-
Fields inherited from interface com.amazon.ion.IonValue
EMPTY_ARRAY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IonClobclone()Creates a copy of this value and all of its children.java.io.ReadernewReader(java.nio.charset.Charset cs)Creates a newReaderthat provides the value of this clob as text, decoding the raw bytes using a given character set.java.lang.StringstringValue(java.nio.charset.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, setBytes
-
Methods 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 Detail
-
newReader
java.io.Reader newReader(java.nio.charset.Charset cs)
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
java.lang.String stringValue(java.nio.charset.Charset cs)
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
IonClob clone() throws UnknownSymbolException
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.
-
-