|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--JProjects.eab.data.DAIOStream
This class is used for handling Large Object (LOB) input and output by using streams.
Constructor Summary | |
DAIOStream()
This constructor creates a DAIOStream object with input and output streams set to null. |
|
DAIOStream(java.io.InputStream in,
java.io.OutputStream out)
This constructor creates a DAIOStream object with the specified attributes. |
|
DAIOStream(java.lang.String fileName)
This constructor creates a DAIOStream object that writes to the specified file. |
|
DAIOStream(java.lang.String fileName,
int readL,
int blockS)
This constructor creates a DAIOStream object that writes to the specified file. |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
|
java.lang.Object |
clone()
Use this method to create an Object with the same attributes as the current DAIOStream object. |
int |
getBlockSize()
Use this method to get the size, in bytes, of the block of information that will be read from the stream at a time. |
int |
getBytesWritten()
Use this method to get the number of bytes read from the current DAIOStream object into the output stream. |
java.io.InputStream |
getDatabaseInputStream()
Use this method to get the input stream that was saved when getFromInputStream was called (if no output stream was specified and save was set to true). |
java.lang.String |
getFileName()
Use this method to return the name of the output file.It returns an empty string if the current file setting is null. |
int |
getFromLob(java.io.InputStream in,
boolean save)
When a manager method fetches a DAIOStream object from a row, it puts the associated stream into the internal sequence. |
java.io.InputStream |
getInputStream()
Use this method to return the input stream that is associated with the current LOB. |
java.io.InputStream |
getInputStreamOrFile()
Manager uses this method to get the InputStream object associated with the current DAIOStream object. |
java.io.OutputStream |
getOutputStream()
Use this method to get OutputStream object associated with this DAIOStream object. |
java.io.OutputStream |
getOutputStreamOrFile()
Manager uses this method to get OutputStream object associated with this DAIOStream object. |
int |
getReadLength()
Use this method to get the length if data, in bytes, that will be read from the current DAIOStream object into the output stream. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
|
void |
setBlockSize(int blSz)
Use this method to set the size, in bytes, of the block of information to read from the stream at a time. |
void |
setFileName(java.lang.String fileName)
Use this method to set the name of the current output file. |
void |
setInputStream(java.io.InputStream in)
Use this method to set the input stream that is associated with the current LOB. |
void |
setOutputStream(java.io.OutputStream out)
Use this method to set OutputStream object associated with this DAIOStream object. |
void |
setReadLength(int readLen)
Use this method to specify the length of data, in bytes, that you want to read from the current DAIOStream object into the output stream. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DAIOStream(java.lang.String fileName, int readL, int blockS)
fileName
- name of the file.readL
- an integer indicating the length (in bytes) to be read from the object into the
output stream. If you pass in 0 (zero), then the entire LOB is extracted to the output stream.blockS
- read block size in bytes.public DAIOStream(java.io.InputStream in, java.io.OutputStream out)
in
- input data stream.out
- output data stream.public DAIOStream(java.lang.String fileName)
fileName
- name of the file.public DAIOStream()
Method Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
public java.lang.Object clone()
public int getBlockSize()
public void setBlockSize(int blSz)
blSz
- the size, in bytes, of the block of information to
read from the stream at a time.public int getBytesWritten()
public java.io.InputStream getDatabaseInputStream()
public int getFromLob(java.io.InputStream in, boolean save)
in
- the InputStream for the LOB in the current fetched row.save
- Pass in true if you want to save the input stream reference if there
is no output stream specified. You can direct the stream later. If you do not want to save the
input stream reference, pass in false.public java.io.InputStream getInputStream()
public void setInputStream(java.io.InputStream in)
in
- the InputStream object to associate with the current DAIOStream object.public java.io.InputStream getInputStreamOrFile()
public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName
- a string indicating the name of the output file.public java.io.OutputStream getOutputStream()
public void setOutputStream(java.io.OutputStream out)
out
- an OutputStream object that gets associated with this DAIOStream object.public int getReadLength()
public void setReadLength(int readLen)
readLen
- an integer indicating the desired read length, in bytes.public java.io.OutputStream getOutputStreamOrFile()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |