org.backsource.utils.io
Class DOMCachedInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byjava.io.BufferedInputStream
              extended byorg.backsource.utils.io.CachedInputStream
                  extended byorg.backsource.utils.io.DOMCachedInputStream

public class DOMCachedInputStream
extends CachedInputStream

A cached input stream that reads from a DOMInputStream.

Version:
$Revision: 1.1.1.1 $
Author:
Peter Antman

Field Summary
 
Fields inherited from class java.io.BufferedInputStream
buf, count, marklimit, markpos, pos
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
DOMCachedInputStream(org.w3c.dom.Document doc)
           
DOMCachedInputStream(DOMCachedOutputStream cout)
           
 
Method Summary
 org.w3c.dom.Document getDocument()
           
 DOMInputStream getStream()
          Get the underlying DOMInputStream.
 void rewind()
          Resets all buffers and opens a new DOMInputStream.
 void setProperties(java.util.Properties props)
           
 
Methods inherited from class org.backsource.utils.io.CachedInputStream
close, close
 
Methods inherited from class java.io.BufferedInputStream
available, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.io.FilterInputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMCachedInputStream

public DOMCachedInputStream(DOMCachedOutputStream cout)
                     throws java.io.IOException

DOMCachedInputStream

public DOMCachedInputStream(org.w3c.dom.Document doc)
Method Detail

setProperties

public void setProperties(java.util.Properties props)

getDocument

public org.w3c.dom.Document getDocument()

getStream

public DOMInputStream getStream()
Get the underlying DOMInputStream.


rewind

public void rewind()
            throws java.io.IOException
Resets all buffers and opens a new DOMInputStream.

Specified by:
rewind in class CachedInputStream
Throws:
java.io.IOException


Copyright © 2000-2004 Backsource. All Rights Reserved.