org.teiid.common.buffer
Class FileStoreInputStreamFactory

java.lang.Object
  extended by org.teiid.core.types.InputStreamFactory
      extended by org.teiid.common.buffer.FileStoreInputStreamFactory
All Implemented Interfaces:
javax.xml.transform.Source

public final class FileStoreInputStreamFactory
extends InputStreamFactory


Nested Class Summary
 
Nested classes/interfaces inherited from class org.teiid.core.types.InputStreamFactory
InputStreamFactory.BlobInputStreamFactory, InputStreamFactory.ClobInputStreamFactory, InputStreamFactory.FileInputStreamFactory, InputStreamFactory.SQLXMLInputStreamFactory, InputStreamFactory.StreamFactoryReference
 
Constructor Summary
FileStoreInputStreamFactory(FileStore lobBuffer, java.lang.String encoding)
           
 
Method Summary
 void free()
           
 java.io.InputStream getInputStream()
           
 long getLength()
           
 FileStore.FileStoreOutputStream getOuputStream()
          The returned output stream is shared among all uses.
 java.io.Writer getWriter()
          Returns a new writer instance that is backed by the shared output stream.
 boolean isPersistent()
           
 
Methods inherited from class org.teiid.core.types.InputStreamFactory
getCharacterStream, getSystemId, setLength, setSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileStoreInputStreamFactory

public FileStoreInputStreamFactory(FileStore lobBuffer,
                                   java.lang.String encoding)
Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Specified by:
getInputStream in class InputStreamFactory
Throws:
java.io.IOException

getLength

public long getLength()
Overrides:
getLength in class InputStreamFactory

getWriter

public java.io.Writer getWriter()
Returns a new writer instance that is backed by the shared output stream. Closing a writer will prevent further writes.

Returns:

getOuputStream

public FileStore.FileStoreOutputStream getOuputStream()
The returned output stream is shared among all uses. Once closed no further writing can occur

Returns:

free

public void free()
          throws java.io.IOException
Overrides:
free in class InputStreamFactory
Throws:
java.io.IOException

isPersistent

public boolean isPersistent()
Overrides:
isPersistent in class InputStreamFactory


Copyright © 2011. All Rights Reserved.