Package org.teiid.core.types
Class InputStreamFactory
- java.lang.Object
-
- org.teiid.core.types.InputStreamFactory
-
- All Implemented Interfaces:
Source
- Direct Known Subclasses:
FileStoreInputStreamFactory
,InputStreamFactory.BlobInputStreamFactory
,InputStreamFactory.ClobInputStreamFactory
,InputStreamFactory.FileInputStreamFactory
,InputStreamFactory.SQLXMLInputStreamFactory
public abstract class InputStreamFactory extends Object implements Source
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InputStreamFactory.BlobInputStreamFactory
static class
InputStreamFactory.ClobInputStreamFactory
static class
InputStreamFactory.FileInputStreamFactory
static class
InputStreamFactory.SQLXMLInputStreamFactory
static class
InputStreamFactory.StorageMode
static interface
InputStreamFactory.StreamFactoryReference
-
Field Summary
Fields Modifier and Type Field Description protected long
length
-
Constructor Summary
Constructors Constructor Description InputStreamFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
free()
Reader
getCharacterStream()
abstract InputStream
getInputStream()
Get a new InputStreamlong
getLength()
Length in bytes of theInputStream
InputStreamFactory.StorageMode
getStorageMode()
static InputStreamFactory.StorageMode
getStorageMode(Object lob)
String
getSystemId()
void
setLength(long length)
void
setSystemId(String systemId)
void
setTemporary(boolean temp)
static void
setTemporary(Object lob, boolean temp)
-
-
-
Method Detail
-
getInputStream
public abstract InputStream getInputStream() throws IOException
Get a new InputStream- Throws:
IOException
-
getSystemId
public String getSystemId()
- Specified by:
getSystemId
in interfaceSource
-
setSystemId
public void setSystemId(String systemId)
- Specified by:
setSystemId
in interfaceSource
-
free
public void free() throws IOException
- Throws:
IOException
-
getLength
public long getLength()
Length in bytes of theInputStream
- Returns:
- the length or -1 if the length is not known
-
setLength
public void setLength(long length)
-
getCharacterStream
public Reader getCharacterStream() throws IOException
- Throws:
IOException
-
getStorageMode
public InputStreamFactory.StorageMode getStorageMode()
-
getStorageMode
public static InputStreamFactory.StorageMode getStorageMode(Object lob)
-
setTemporary
public static void setTemporary(Object lob, boolean temp)
-
setTemporary
public void setTemporary(boolean temp)
-
-