public class XMLWrapperStream
extends java.io.InputStream
Constructor and Description |
---|
XMLWrapperStream(java.io.InputStream wrappedStream)
Constructor.
|
XMLWrapperStream(java.io.InputStream wrappedStream,
java.lang.String rootName)
Constructor.
|
XMLWrapperStream(java.io.InputStream wrappedStream,
java.lang.String rootName,
java.lang.String version,
java.lang.String encoding,
java.lang.String standalone)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
read()
Get a byte.
|
public XMLWrapperStream(java.io.InputStream wrappedStream, java.lang.String rootName, java.lang.String version, java.lang.String encoding, java.lang.String standalone)
wrappedStream
- The stream which this stream will subsume.rootName
- The name of the root element. May be null
if wrappedStream
already contains a root element.version
- The XML version. Should be null or "1.0" unless
there's a really good reason.encoding
- The name of the character encoding. May be null.standalone
- The value of the standalone
attribute. May be null.public XMLWrapperStream(java.io.InputStream wrappedStream)
XMLWrapperStream (wrappedStream, null, null, null, null)
wrappedStream
- The stream which this stream will subsume.public XMLWrapperStream(java.io.InputStream wrappedStream, java.lang.String rootName)
XMLWrapperStream (wrappedStream, rootName, null, null, null)
wrappedStream
- The stream which this stream will subsume.rootName
- The name of the root element. May be null.