|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fossilec.odettej.VirtualFile
public class VirtualFile
Nested Class Summary | |
---|---|
static class |
VirtualFile.MappingMode
This enumeration serves to identify Virtual File mapping mode, whether it's for inputing or outputing. |
Constructor Summary | |
---|---|
VirtualFile(java.lang.String path,
VirtualFile.MappingMode mode,
RecordFormat recordFormat,
int recordSize)
|
|
VirtualFile(java.lang.String path,
VirtualFile.MappingMode mode,
RecordFormat recordFormat,
int recordSize,
int restartOffset)
|
|
VirtualFile(java.lang.String path,
VirtualFile.MappingMode mode,
RecordFormat recordFormat,
int recordSize,
java.lang.String datasetName)
|
|
VirtualFile(java.lang.String path,
VirtualFile.MappingMode mode,
RecordFormat recordFormat,
int recordSize,
java.lang.String datasetName,
int restartOffset)
|
Method Summary | |
---|---|
void |
close()
|
protected void |
finalize()
|
java.lang.String |
getDatasetName()
Return the Dataset Name of the Virtual File being transfered, assigned by bilateral agreement. |
java.util.Date |
getDateTime()
Return the file qualifier indicating the date and time the Virtual File was made avaiable for transmission. |
int |
getFileSize()
Return the file size in 1K (1024 octets) blocks required at the Originator location to store the Virtual File. This parameter is intended to provide only a good estimate of the Virtual File size. |
RecordFormat |
getFormat()
|
VirtualFile.MappingMode |
getMode()
|
int |
getOffset()
Return the offset representing the restart position of the Virtual File being transfered. |
int |
getRecordCount()
|
int |
getRecordSize()
|
long |
getUnitCount()
|
boolean |
isOpen()
|
void |
setDateTime(java.util.Date date)
|
void |
setupRestart(int restartOffset)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VirtualFile(java.lang.String path, VirtualFile.MappingMode mode, RecordFormat recordFormat, int recordSize) throws OdetteFTPException
OdetteFTPException
public VirtualFile(java.lang.String path, VirtualFile.MappingMode mode, RecordFormat recordFormat, int recordSize, int restartOffset) throws OdetteFTPException
OdetteFTPException
public VirtualFile(java.lang.String path, VirtualFile.MappingMode mode, RecordFormat recordFormat, int recordSize, java.lang.String datasetName) throws OdetteFTPException
OdetteFTPException
public VirtualFile(java.lang.String path, VirtualFile.MappingMode mode, RecordFormat recordFormat, int recordSize, java.lang.String datasetName, int restartOffset) throws OdetteFTPException
OdetteFTPException
Method Detail |
---|
public java.lang.String getDatasetName()
String
containing the Dataset Name.public java.util.Date getDateTime()
Date
representing the specific date and time which
the Virtual File was made avaiable.public void setDateTime(java.util.Date date) throws OdetteFTPException
OdetteFTPException
public RecordFormat getFormat()
public int getOffset()
FIXED
or VARIABLE
, or the offset
in 1K (1024 octets) blocks in case being UNSTRUCTURED
or
TEXTFILE
.
int
offset position. zero
if hasn't
been set.public VirtualFile.MappingMode getMode()
public int getFileSize() throws OdetteFTPException
int
File Size in 1K (1024 octets) blocks.
OdetteFTPException
public int getRecordSize()
public long getUnitCount() throws OdetteFTPException
OdetteFTPException
public int getRecordCount() throws OdetteFTPException
OdetteFTPException
public void setupRestart(int restartOffset) throws OdetteFTPException
OdetteFTPException
public boolean isOpen()
public void close() throws OdetteFTPException
OdetteFTPException
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |