Package com.amazon.ion.util
Class Printer.PrinterVisitor
- java.lang.Object
-
- com.amazon.ion.util.AbstractValueVisitor
-
- com.amazon.ion.util.Printer.PrinterVisitor
-
- All Implemented Interfaces:
ValueVisitor
- Enclosing class:
- Printer
public static class Printer.PrinterVisitor extends AbstractValueVisitor
Deprecated.UseIonValue.writeTo(IonWriter)instead.
-
-
Field Summary
Fields Modifier and Type Field Description protected Printer.OptionsmyOptionsDeprecated.protected java.lang.AppendablemyOutDeprecated.
-
Constructor Summary
Constructors Constructor Description PrinterVisitor(Printer.Options options, java.lang.Appendable out)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voiddefaultVisit(IonValue value)Deprecated.Default visitation behavior, called by allvisitmethods inAbstractValueVisitor.voidvisit(IonBlob value)Deprecated.voidvisit(IonBool value)Deprecated.voidvisit(IonClob value)Deprecated.voidvisit(IonDatagram value)Deprecated.voidvisit(IonDecimal value)Deprecated.voidvisit(IonFloat value)Deprecated.voidvisit(IonInt value)Deprecated.voidvisit(IonList value)Deprecated.voidvisit(IonNull value)Deprecated.voidvisit(IonSexp value)Deprecated.voidvisit(IonString value)Deprecated.voidvisit(IonStruct value)Deprecated.voidvisit(IonSymbol value)Deprecated.voidvisit(IonTimestamp value)Deprecated.voidwriteAnnotations(IonValue value)Deprecated.protected voidwriteChild(IonValue value, boolean quoteOperators)Deprecated.Recurse down into a container, we push the current value ofmyQuoteOperatorsonto the stack and replace it with the given value.voidwriteNull(java.lang.String type)Deprecated.voidwriteSequenceContent(IonSequence value, boolean quoteOperators, char open, char separator, char close)Deprecated.voidwriteString(java.lang.String text)Deprecated.voidwriteSymbol(java.lang.String text)Deprecated.voidwriteSymbolToken(SymbolToken sym)Deprecated.
-
-
-
Field Detail
-
myOptions
protected final Printer.Options myOptions
Deprecated.
-
myOut
protected final java.lang.Appendable myOut
Deprecated.
-
-
Constructor Detail
-
PrinterVisitor
public PrinterVisitor(Printer.Options options, java.lang.Appendable out)
Deprecated.
-
-
Method Detail
-
writeChild
protected void writeChild(IonValue value, boolean quoteOperators) throws java.lang.Exception
Deprecated.Recurse down into a container, we push the current value ofmyQuoteOperatorsonto the stack and replace it with the given value.- Parameters:
value-quoteOperators- replaces the current value ofmyQuoteOperatorsduring the recursive visitation.- Throws:
java.lang.Exception- propagated from visitation ofvalue.java.lang.NullPointerException- ifvalueis null.
-
writeAnnotations
public void writeAnnotations(IonValue value) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
writeNull
public void writeNull(java.lang.String type) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
writeSequenceContent
public void writeSequenceContent(IonSequence value, boolean quoteOperators, char open, char separator, char close) throws java.io.IOException, java.lang.Exception
Deprecated.- Throws:
java.io.IOExceptionjava.lang.Exception
-
writeSymbolToken
public void writeSymbolToken(SymbolToken sym) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
writeSymbol
public void writeSymbol(java.lang.String text) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
writeString
public void writeString(java.lang.String text) throws java.io.IOExceptionDeprecated.- Parameters:
text- may be null- Throws:
java.io.IOException
-
defaultVisit
protected void defaultVisit(IonValue value)
Deprecated.Description copied from class:AbstractValueVisitorDefault visitation behavior, called by allvisitmethods inAbstractValueVisitor. Subclasses should override this unless they override allvisitmethods.This implementation always throws
UnsupportedOperationException.- Overrides:
defaultVisitin classAbstractValueVisitor- Parameters:
value- the value to visit.
-
visit
public void visit(IonBlob value) throws java.io.IOException
Deprecated.- Specified by:
visitin interfaceValueVisitor- Overrides:
visitin classAbstractValueVisitor- Throws:
java.io.IOException
-
visit
public void visit(IonBool value) throws java.io.IOException
Deprecated.- Specified by:
visitin interfaceValueVisitor- Overrides:
visitin classAbstractValueVisitor- Throws:
java.io.IOException
-
visit
public void visit(IonClob value) throws java.io.IOException
Deprecated.- Specified by:
visitin interfaceValueVisitor- Overrides:
visitin classAbstractValueVisitor- Throws:
java.io.IOException
-
visit
public void visit(IonDatagram value) throws java.io.IOException, java.lang.Exception
Deprecated.- Specified by:
visitin interfaceValueVisitor- Overrides:
visitin classAbstractValueVisitor- Throws:
java.io.IOExceptionjava.lang.Exception
-
visit
public void visit(IonDecimal value) throws java.io.IOException
Deprecated.- Specified by:
visitin interfaceValueVisitor- Overrides:
visitin classAbstractValueVisitor- Throws:
java.io.IOException
-
visit
public void visit(IonFloat value) throws java.io.IOException
Deprecated.- Specified by:
visitin interfaceValueVisitor- Overrides:
visitin classAbstractValueVisitor- Throws:
java.io.IOException
-
visit
public void visit(IonInt value) throws java.io.IOException
Deprecated.- Specified by:
visitin interfaceValueVisitor- Overrides:
visitin classAbstractValueVisitor- Throws:
java.io.IOException
-
visit
public void visit(IonList value) throws java.io.IOException, java.lang.Exception
Deprecated.- Specified by:
visitin interfaceValueVisitor- Overrides:
visitin classAbstractValueVisitor- Throws:
java.io.IOExceptionjava.lang.Exception
-
visit
public void visit(IonNull value) throws java.io.IOException
Deprecated.- Specified by:
visitin interfaceValueVisitor- Overrides:
visitin classAbstractValueVisitor- Throws:
java.io.IOException
-
visit
public void visit(IonSexp value) throws java.io.IOException, java.lang.Exception
Deprecated.- Specified by:
visitin interfaceValueVisitor- Overrides:
visitin classAbstractValueVisitor- Throws:
java.io.IOExceptionjava.lang.Exception
-
visit
public void visit(IonString value) throws java.io.IOException
Deprecated.- Specified by:
visitin interfaceValueVisitor- Overrides:
visitin classAbstractValueVisitor- Throws:
java.io.IOException
-
visit
public void visit(IonStruct value) throws java.io.IOException, java.lang.Exception
Deprecated.- Specified by:
visitin interfaceValueVisitor- Overrides:
visitin classAbstractValueVisitor- Throws:
java.io.IOExceptionjava.lang.Exception
-
visit
public void visit(IonSymbol value) throws java.io.IOException
Deprecated.- Specified by:
visitin interfaceValueVisitor- Overrides:
visitin classAbstractValueVisitor- Throws:
java.io.IOException
-
visit
public void visit(IonTimestamp value) throws java.io.IOException
Deprecated.- Specified by:
visitin interfaceValueVisitor- Overrides:
visitin classAbstractValueVisitor- Throws:
java.io.IOException
-
-