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()protectedBaseLob(InputStreamFactory streamFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfree()InputStreamgetBinaryStream()ReadergetCharacterStream()CharsetgetCharset()InputStreamFactorygetStreamFactory()longlength()Returns the number of bytes.voidreadExternal(ObjectInput in)voidsetCharset(Charset charset)voidsetEncoding(String encoding)voidsetStreamFactory(InputStreamFactory streamFactory)voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
BaseLob
public BaseLob()
-
BaseLob
protected BaseLob(InputStreamFactory streamFactory)
-
-
Method Detail
-
setStreamFactory
public void setStreamFactory(InputStreamFactory streamFactory)
- Specified by:
setStreamFactoryin 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:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
length
public long length() throws SQLExceptionReturns the number of bytes.- Throws:
SQLException
-
-