|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.iris.Fissures.seed.director.ImportDirector
public abstract class ImportDirector
Abstract class representing all Director classes for importing data.
Field Summary | |
---|---|
protected ObjectBuilder |
builder
|
protected int |
fixedRecordLength
|
protected java.io.DataInputStream |
inStream
|
int |
maxRecordLength
|
protected java.lang.String |
outputString
|
protected ReadBuffer |
readBuffer
|
protected int |
recCount
|
protected int |
recLen
|
protected byte[] |
record
|
protected int |
recordOffset
|
protected boolean |
streamOpen
|
Constructor Summary | |
---|---|
ImportDirector()
Instantiate without assigning a Builder to it. |
|
ImportDirector(ObjectBuilder builder)
Assign a Builder to the Director without yet importing a data stream. |
Method Summary | |
---|---|
void |
assignBuilder(ObjectBuilder builder)
Assign a builder object to this director |
abstract int |
build()
Build a data object. |
void |
close()
Close the input stream. |
int |
construct(java.io.InputStream inStream)
Constructs objects from the input stream of a single volume. |
int |
construct(java.io.InputStream inStream,
java.io.OutputStream outStream,
boolean storeFlag)
Constructs objects from the input stream of a single volume. |
ObjectBuilder |
getBuilder()
Get the builder object registered to this director |
abstract int |
getRecLen()
Determine and return the length in bytes of the data record currently in the readBuffer. |
void |
open(java.io.InputStream inStream)
Open the input stream for reading. |
boolean |
read()
Read a single record from the input stream and builds objects. |
boolean |
read(boolean storeFlag)
Read a single record from the input stream and builds objects. |
void |
setRecLen(int length)
Set import logical record length. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean streamOpen
protected java.io.DataInputStream inStream
protected ReadBuffer readBuffer
protected byte[] record
protected int recCount
protected int recLen
protected int recordOffset
protected ObjectBuilder builder
protected java.lang.String outputString
protected int fixedRecordLength
public int maxRecordLength
Constructor Detail |
---|
public ImportDirector()
public ImportDirector(ObjectBuilder builder)
Method Detail |
---|
public abstract int getRecLen() throws java.lang.Exception
java.lang.Exception
public void assignBuilder(ObjectBuilder builder)
public ObjectBuilder getBuilder()
public void setRecLen(int length)
public int construct(java.io.InputStream inStream, java.io.OutputStream outStream, boolean storeFlag) throws java.lang.Exception
java.lang.Exception
public int construct(java.io.InputStream inStream) throws java.lang.Exception
java.lang.Exception
public void open(java.io.InputStream inStream) throws java.lang.Exception
java.lang.Exception
public void close()
public boolean read(boolean storeFlag) throws java.lang.Exception
java.lang.Exception
public boolean read() throws java.lang.Exception
java.lang.Exception
public abstract int build() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |