com.metamatrix.common.lob
Class LobChunkInputStream
java.lang.Object
java.io.InputStream
com.metamatrix.common.lob.LobChunkInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class LobChunkInputStream
- extends java.io.InputStream
A InputStream wrapper class for a Lob Chunks. Given a stream of Lob Chunks
this class will convert those chunks into InputStream, which can be used to
stream the lob data.
Methods inherited from class java.io.InputStream |
available, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LobChunkInputStream
public LobChunkInputStream(LobChunkProducer reader)
read
public int read()
throws java.io.IOException
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read(byte[] b)
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.InputStream
- Throws:
java.io.IOException
- See Also:
InputStream.close()
getByteContents
public byte[] getByteContents()
throws java.io.IOException
- Get the byte contents of the input stream. use caution as this may use up VM memory as
the contents are loaded into memory.
- Throws:
java.io.IOException
getUTF16Reader
public java.io.Reader getUTF16Reader()
- Returns:
- a valid UTF16 based reader
Copyright © 2009. All Rights Reserved.