org.apache.jackrabbit.core.xml
Class ClonedInputSource

java.lang.Object
  extended by org.xml.sax.InputSource
      extended by org.apache.jackrabbit.core.xml.ClonedInputSource

public class ClonedInputSource
extends InputSource

Input source that clones existing input source. After cloning the existing input source should not be used anymore. To make more copies call cloneInputSource() method.


Constructor Summary
ClonedInputSource(InputSource input)
          Clone existing input source.
 
Method Summary
 ClonedInputSource cloneInputSource()
          Make a clone if this input source.
 byte[] getByteArray()
           
 char[] getCharacterArray()
           
 
Methods inherited from class org.xml.sax.InputSource
getByteStream, getCharacterStream, getEncoding, getPublicId, getSystemId, setByteStream, setCharacterStream, setEncoding, setPublicId, setSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClonedInputSource

public ClonedInputSource(InputSource input)
                  throws RepositoryException
Clone existing input source.

Parameters:
input -
Throws:
RepositoryException
Method Detail

getCharacterArray

public char[] getCharacterArray()

getByteArray

public byte[] getByteArray()

cloneInputSource

public ClonedInputSource cloneInputSource()
Make a clone if this input source. The input source being cloned is still valid after cloning.

Returns:
input source clone.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.