Package org.codehaus.plexus.util.xml
Class XmlStreamWriter
java.lang.Object
java.io.Writer
org.codehaus.plexus.util.xml.XmlStreamWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
Character stream that handles (or at least attempts to) all the necessary Voodo to figure out the charset encoding of
the XML document written to the stream.
- Since:
- 1.4.4
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate String(package private) static final Patternprivate OutputStreamprivate Writerprivate StringWriter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private voiddetectEncoding(char[] cbuf, int off, int len) voidflush()voidwrite(char[] cbuf, int off, int len)
-
Field Details
-
BUFFER_SIZE
private static final int BUFFER_SIZE- See Also:
-
xmlPrologWriter
-
out
-
writer
-
encoding
-
ENCODING_PATTERN
-
-
Constructor Details
-
XmlStreamWriter
-
XmlStreamWriter
- Throws:
FileNotFoundException
-
-
Method Details
-
getEncoding
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
detectEncoding
- Throws:
IOException
-
write
- Specified by:
writein classWriter- Throws:
IOException
-