public class XMLWrapperStream extends InputStream
Constructor and Description |
---|
XMLWrapperStream(InputStream wrappedStream)
Constructor.
|
XMLWrapperStream(InputStream wrappedStream,
String rootName)
Constructor.
|
XMLWrapperStream(InputStream wrappedStream,
String rootName,
String version,
String encoding,
String standalone)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
read()
Get a byte.
|
available, close, mark, markSupported, read, read, reset, skip
public XMLWrapperStream(InputStream wrappedStream, String rootName, String version, String encoding, 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(InputStream wrappedStream)
XMLWrapperStream (wrappedStream, null, null, null, null)
wrappedStream
- The stream which this stream will subsume.public XMLWrapperStream(InputStream wrappedStream, 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.public int read() throws IOException
read
in class InputStream
IOException
InputStream.read()
Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.