org.teiid.common.buffer
Class FileStoreInputStreamFactory
java.lang.Object
org.teiid.core.types.InputStreamFactory
org.teiid.common.buffer.FileStoreInputStreamFactory
- All Implemented Interfaces:
- javax.xml.transform.Source
public final class FileStoreInputStreamFactory
- extends InputStreamFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileStoreInputStreamFactory
public FileStoreInputStreamFactory(FileStore lobBuffer,
java.lang.String encoding)
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.