Top Fields Constructors Methods
nu.xom

pack-priv Class ASCIIWriter

extends TextWriter
Class Inheritance
Imports
java.io.Writer

Author
Elliotte Rusty Harold
Version
1.0

Field Summary

Inherited from nu.xom.TextWriter:
columnencodingjustBrokelastCharacterWasSpacelineSeparatorSetnormalizeoutskipFollowingLinefeed

Constructor Summary

AccessConstructor and Description
pack-priv
ASCIIWriter(Writer
the Writer to write to
out
,
String
the encoding the writer uses
encoding
)

Constructor for ASCIIWriter.

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean

Returns:

true if this character must be escaped with a numeric character reference in ASCII
needsEscaping
(char
the character tested for availability in the ASCII character set
c
)

Implements abstract nu.xom.TextWriter.needsEscaping.

Inherited from nu.xom.TextWriter:
breakLinedecrementIndentflushgetColumnNumbergetEncodinggetIndentgetLineSeparatorgetMaxLengthgetNFCincrementIndentisIndentingisPreserveSpacejustBrokenormalizeresetsetIndentsetInDocTypesetLineSeparatorsetMaxLengthsetNFCsetPreserveSpacewritewriteAttributeValuewriteAttributeValuewriteMarkupwriteMarkupwriteNamewritePCDATAwritePCDATAwriteUncheckedMarkup

Constructor Detail

ASCIIWriterback to summary
pack-priv ASCIIWriter(Writer out, String encoding)

Constructor for ASCIIWriter.

Parameters
out:Writer

the Writer to write to

encoding:String

the encoding the writer uses

Method Detail

needsEscapingback to summary
pack-priv boolean needsEscaping(char c)

Implements abstract nu.xom.TextWriter.needsEscaping.

Parameters
c:char

the character tested for availability in the ASCII character set

Returns:boolean

true if this character must be escaped with a numeric character reference in ASCII

See Also
nu.xom.TextWriter#needsEscaping(char)