| Modifier and Type | Method and Description |
|---|---|
| public IonCatalog | |
| public int | Returns: int depth of container nestingReturns the current depth of containers the writer is at. |
| public boolean | Returns: true if a field name has been set false otherwiseReturns true if the field name has been set either through setFieldName or setFieldId. |
| public boolean | isStreamCopyOptimized()
Indicates whether the writer is stream copy optimized through |
| public void |
| getCatalog | back to summary |
|---|---|
| public IonCatalog getCatalog() Mostly for testing at this point, but could be useful public API. | |
| getDepth | back to summary |
|---|---|
| public int getDepth() Returns the current depth of containers the writer is at. This is 0 if the writer is at top-level.
| |
| isFieldNameSet | back to summary |
|---|---|
| public boolean isFieldNameSet() Returns true if the field name has been set either through setFieldName or setFieldId. This is generally more efficient than calling getFieldName or getFieldId and checking the return type as it does not need to resolve the name through a symbol table. This returns false if the field name has not been set.
| |
| isStreamCopyOptimized | back to summary |
|---|---|
| public boolean isStreamCopyOptimized() Indicates whether the writer is stream copy optimized through | |
| writeIonVersionMarker | back to summary |
|---|---|
| public void writeIonVersionMarker() throws IOException Write an Ion version marker symbol to the output. This is the $ion_1_0 value currently (in later versions the number may change). In text output this appears as the text symbol. In binary this will be the symbol id if the writer is in a list, sexp or struct. If the writer is currently at the top level this will write the "magic cookie" value. Writing a version marker will reset the symbol table to be the system symbol table. | |