|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.pf.io.FilterSourceBase de.grogra.pf.io.NullSource
public final class NullSource
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface de.grogra.pf.io.FilterSource |
---|
FilterSource.MetaDataKey<V> |
Field Summary |
---|
Fields inherited from interface de.grogra.pf.io.SAXSource |
---|
NAMESPACE_PREFIXES, NAMESPACES |
Fields inherited from interface de.grogra.pf.io.FilterSource |
---|
AUTO_PROGRESS, DESTINATION_FILE, DESTINATION_URL |
Constructor Summary | |
---|---|
NullSource(IOFlavor flavor,
Registry r,
ModifiableMap metaData)
|
Method Summary | |
---|---|
org.w3c.dom.Document |
getDocument()
Returns the data as a DOM document. |
boolean |
getFeature(java.lang.String name)
|
java.lang.Object |
getFile()
Returns the file from which the data can be obtained. |
FileSystem |
getFileSystem()
Returns the file system in which the file is contained. |
java.io.File |
getInputFile()
Returns the file from which the data can be obtained. |
java.io.InputStream |
getInputStream()
Returns a stream to obtain the data as a stream of bytes. |
java.lang.Object |
getObject()
Returns the data as an object of a class which is compatible which the flavor. |
java.io.Reader |
getReader()
Returns a reader to obtain the data as a stream of characters. |
java.lang.String |
getSystemId()
Returns a system id which identifies this source. |
long |
length()
Returns the total number of bytes of this stream. |
void |
parse(org.xml.sax.ContentHandler ch,
org.xml.sax.ErrorHandler eh,
org.xml.sax.ext.LexicalHandler lh,
org.xml.sax.DTDHandler dh,
org.xml.sax.EntityResolver er)
|
void |
setFeature(java.lang.String name,
boolean value)
|
void |
write(java.io.File out)
This method writes the data to out . |
void |
write(FileSystem fs,
java.lang.Object out)
This method writes the data to out . |
void |
write(java.io.OutputStream out)
This method writes the data to out . |
void |
write(java.io.Writer out)
This method writes the data to out . |
Methods inherited from class de.grogra.pf.io.FilterSourceBase |
---|
getFilter, getFlavor, getMetaData, getRegistry, initProgressMonitor, setMetaData, setProgress, setProgress0, setProgressImpl, toString, useAutoProgress |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.grogra.pf.io.FilterSource |
---|
getFilter, getFlavor, getMetaData, initProgressMonitor, setMetaData, setProgress |
Methods inherited from interface de.grogra.pf.registry.RegistryContext |
---|
getRegistry |
Constructor Detail |
---|
public NullSource(IOFlavor flavor, Registry r, ModifiableMap metaData)
Method Detail |
---|
public org.w3c.dom.Document getDocument() throws java.io.IOException, org.w3c.dom.DOMException
DOMSource
getDocument
in interface DOMSource
java.io.IOException
org.w3c.dom.DOMException
public boolean getFeature(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
getFeature
in interface SAXSource
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public java.lang.Object getFile()
VirtualFileReaderSource
getFile
in interface VirtualFileReaderSource
public FileSystem getFileSystem()
VirtualFileReaderSource
getFileSystem
in interface VirtualFileReaderSource
public java.io.File getInputFile()
FileReaderSource
getInputFile
in interface FileReaderSource
public java.io.InputStream getInputStream() throws java.io.IOException
InputStreamSource
getInputStream
in interface InputStreamSource
java.io.IOException
public java.lang.Object getObject() throws java.io.IOException
ObjectSource
getObject
in interface ObjectSource
java.io.IOException
public java.io.Reader getReader() throws java.io.IOException
ReaderSource
getReader
in interface ReaderSource
java.io.IOException
public java.lang.String getSystemId()
FilterSource
getSystemId
in interface FilterSource
public long length()
InputStreamSource
length
in interface InputStreamSource
public void parse(org.xml.sax.ContentHandler ch, org.xml.sax.ErrorHandler eh, org.xml.sax.ext.LexicalHandler lh, org.xml.sax.DTDHandler dh, org.xml.sax.EntityResolver er) throws java.io.IOException, org.xml.sax.SAXException
parse
in interface SAXSource
java.io.IOException
org.xml.sax.SAXException
public void setFeature(java.lang.String name, boolean value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
setFeature
in interface SAXSource
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public void write(java.io.File out) throws java.io.IOException
FileWriterSource
out
.
write
in interface FileWriterSource
out
- the file to which data is written
java.io.IOException
public void write(FileSystem fs, java.lang.Object out)
VirtualFileWriterSource
out
.
write
in interface VirtualFileWriterSource
fs
- the file system to which data is writtenout
- the file to which data is writtenpublic void write(java.io.OutputStream out) throws java.io.IOException
OutputStreamSource
out
.
write
in interface OutputStreamSource
out
- the stream to which data is written
java.io.IOException
public void write(java.io.Writer out) throws java.io.IOException
WriterSource
out
.
write
in interface WriterSource
out
- the writer to which data is written
java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |