|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.io.AbstractPositionalData
public abstract class AbstractPositionalData
Combines a DataInput and a DataOutput into a
PositionalData. An implementation must provide the positioning
operations specified in Positionable.
| Constructor Summary | |
|---|---|
AbstractPositionalData(DataInput in,
DataOutput out)
|
|
| Method Summary | |
|---|---|
abstract SourceId |
id()
Returns the current SourceId associated with the
data. |
boolean |
isModified()
|
boolean |
isReadOnly()
|
abstract Locator |
location()
Returns the current position in the data as a Locator. |
abstract long |
position()
Returns the current position in the data as an long. |
boolean |
readBoolean()
|
byte |
readByte()
|
char |
readChar()
|
double |
readDouble()
|
float |
readFloat()
|
void |
readFully(byte[] b)
|
void |
readFully(byte[] b,
int off,
int len)
|
int |
readInt()
|
abstract void |
readInto(DataOutput out,
long length)
Writes to the output length bytes from the input. |
String |
readLine()
|
long |
readLong()
|
short |
readShort()
|
int |
readUnsignedByte()
|
int |
readUnsignedShort()
|
String |
readUTF()
|
abstract void |
seek(Locator locator)
Positions the data source at the specified locator. |
abstract void |
seek(long position)
Positions the data source at the specified position. |
void |
setModified(boolean isModified)
|
void |
setReadOnly(boolean isReadOnly)
|
int |
skipBytes(int n)
|
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
abstract void |
write(DataInput in,
long length)
Writes to the output length bytes from the specified
DataInput. |
void |
write(int b)
|
void |
writeBoolean(boolean v)
|
void |
writeByte(int v)
|
void |
writeBytes(String s)
|
void |
writeChar(int v)
|
void |
writeChars(String s)
|
void |
writeDouble(double v)
|
void |
writeFloat(float v)
|
void |
writeInt(int v)
|
void |
writeLong(long v)
|
void |
writeShort(int v)
|
void |
writeUTF(String str)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractPositionalData(DataInput in,
DataOutput out)
| Method Detail |
|---|
public boolean isModified()
public void setModified(boolean isModified)
public boolean isReadOnly()
public void setReadOnly(boolean isReadOnly)
public abstract SourceId id()
throws IOException
PositionableSourceId associated with the
data. That is, the SourceId of the Locator
that will currently be returned by the Positionable.location() method.
id in interface PositionableIOException
public abstract Locator location()
throws IOException
PositionableLocator.
location in interface PositionableIOException - if an I/O error occurred.
public abstract long position()
throws IOException
Positionablelong.
position in interface PositionableIOException - if an I/O error occurred.
public abstract void seek(Locator locator)
throws IOException,
InvalidSourceIdException,
OutOfBoundsException
Positionable
seek in interface PositionableIOException - if an I/O error occurred.
InvalidSourceIdException
OutOfBoundsException
public abstract void seek(long position)
throws IOException,
OutOfBoundsException
Positionable
seek in interface PositionableIOException - if an I/O error occurred.
OutOfBoundsException
public abstract void readInto(DataOutput out,
long length)
throws IOException
PositionalDataInputlength bytes from the input.
readInto in interface PositionalDataInputIOException - if an I/O error occurred.
public abstract void write(DataInput in,
long length)
throws IOException
PositionalDataOutputlength bytes from the specified
DataInput.
write in interface PositionalDataOutputIOException - if an I/O error occurred.
public void readFully(byte[] b)
throws IOException
readFully in interface DataInputIOException
public void readFully(byte[] b,
int off,
int len)
throws IOException
readFully in interface DataInputIOException
public int skipBytes(int n)
throws IOException
skipBytes in interface DataInputIOException
public boolean readBoolean()
throws IOException
readBoolean in interface DataInputIOException
public byte readByte()
throws IOException
readByte in interface DataInputIOException
public int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputIOException
public short readShort()
throws IOException
readShort in interface DataInputIOException
public int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputIOException
public char readChar()
throws IOException
readChar in interface DataInputIOException
public int readInt()
throws IOException
readInt in interface DataInputIOException
public long readLong()
throws IOException
readLong in interface DataInputIOException
public float readFloat()
throws IOException
readFloat in interface DataInputIOException
public double readDouble()
throws IOException
readDouble in interface DataInputIOException
public String readLine()
throws IOException
readLine in interface DataInputIOException
public String readUTF()
throws IOException
readUTF in interface DataInputIOException
public void write(int b)
throws IOException
write in interface DataOutputIOException
public void write(byte[] b)
throws IOException
write in interface DataOutputIOException
public void write(byte[] b,
int off,
int len)
throws IOException
write in interface DataOutputIOException
public void writeBoolean(boolean v)
throws IOException
writeBoolean in interface DataOutputIOException
public void writeByte(int v)
throws IOException
writeByte in interface DataOutputIOException
public void writeShort(int v)
throws IOException
writeShort in interface DataOutputIOException
public void writeChar(int v)
throws IOException
writeChar in interface DataOutputIOException
public void writeInt(int v)
throws IOException
writeInt in interface DataOutputIOException
public void writeLong(long v)
throws IOException
writeLong in interface DataOutputIOException
public void writeFloat(float v)
throws IOException
writeFloat in interface DataOutputIOException
public void writeDouble(double v)
throws IOException
writeDouble in interface DataOutputIOException
public void writeBytes(String s)
throws IOException
writeBytes in interface DataOutputIOException
public void writeChars(String s)
throws IOException
writeChars in interface DataOutputIOException
public void writeUTF(String str)
throws IOException
writeUTF in interface DataOutputIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||