Package org.teiid.core.types
Class BaseLob
- java.lang.Object
-
- org.teiid.core.types.BaseLob
-
- All Implemented Interfaces:
Externalizable
,Serializable
,InputStreamFactory.StreamFactoryReference
- Direct Known Subclasses:
BlobImpl
,ClobImpl
,SQLXMLImpl
public class BaseLob extends Object implements Externalizable, InputStreamFactory.StreamFactoryReference
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description BaseLob()
protected
BaseLob(InputStreamFactory streamFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
free()
InputStream
getBinaryStream()
Reader
getCharacterStream()
Charset
getCharset()
InputStreamFactory
getStreamFactory()
long
length()
Returns the number of bytes.void
readExternal(ObjectInput in)
void
setCharset(Charset charset)
void
setEncoding(String encoding)
void
setStreamFactory(InputStreamFactory streamFactory)
void
writeExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
BaseLob
public BaseLob()
-
BaseLob
protected BaseLob(InputStreamFactory streamFactory)
-
-
Method Detail
-
setStreamFactory
public void setStreamFactory(InputStreamFactory streamFactory)
- Specified by:
setStreamFactory
in interfaceInputStreamFactory.StreamFactoryReference
-
getStreamFactory
public InputStreamFactory getStreamFactory() throws SQLException
- Throws:
SQLException
-
setEncoding
public void setEncoding(String encoding)
-
getCharset
public Charset getCharset()
-
setCharset
public void setCharset(Charset charset)
-
free
public void free()
-
getCharacterStream
public Reader getCharacterStream() throws SQLException
- Throws:
SQLException
-
getBinaryStream
public InputStream getBinaryStream() throws SQLException
- Throws:
SQLException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
length
public long length() throws SQLException
Returns the number of bytes.- Throws:
SQLException
-
-