|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
edu.harvard.hul.ois.jhove.XMLWrapperStream
public class XMLWrapperStream
This class serves to provide an InputStream for an XML fragment (e.g., embedded XMP metadata).
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
int |
read()
Get a byte. |
Methods inherited from class java.io.InputStream |
---|
available, close, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
InputStream.read()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |