|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.dss.util.xdo.common.io.ByteArray
public class ByteArray
Byte Array handling class. Using this class, you can access memory like RandomAccessFile.
Note)
Write methods are not implemented yet.
Field Summary | |
---|---|
static java.lang.String |
RCS_ID
|
Constructor Summary | |
---|---|
ByteArray(byte[] buf)
|
Method Summary | |
---|---|
void |
close()
Close (Calling this method is optional for this class) |
long |
getFilePointer()
Returns the position. |
long |
length()
Returns the length of this byte array. |
int |
read()
Read 1 byte |
int |
read(byte[] b)
Reads up to b.length bytes of data from this file into an array of bytes. |
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this file into an array of bytes. |
void |
seek(long pos)
Seek the position |
void |
setLength(long newLength)
Set the file length or memory size. |
int |
skipBytes(int n)
Attempts to skip over n bytes of input discarding the skipped bytes. |
void |
write(byte[] b)
Writes b.length bytes from the specified byte array |
void |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array. |
void |
write(int b)
Writes the specified byte. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RCS_ID
Constructor Detail |
---|
public ByteArray(byte[] buf)
Method Detail |
---|
public int read() throws java.io.IOException
read
in interface RandomAccessFileOrMemory
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in interface RandomAccessFileOrMemory
buf
-
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in interface RandomAccessFileOrMemory
b
- the buffer into which the data is read.off
- the start offset of the data.len
- the maximum number of bytes read.
java.io.IOException
public void seek(long pos) throws java.io.IOException
seek
in interface RandomAccessFileOrMemory
pos
-
java.io.IOException
public long getFilePointer()
getFilePointer
in interface RandomAccessFileOrMemory
public int skipBytes(int n) throws java.io.IOException
skipBytes
in interface RandomAccessFileOrMemory
n
- the number of bytes to be skipped.
java.io.IOException
public long length() throws java.io.IOException
length
in interface RandomAccessFileOrMemory
java.io.IOException
public void close() throws java.io.IOException
close
in interface RandomAccessFileOrMemory
java.io.IOException
public void write(int b) throws java.io.IOException
RandomAccessFileOrMemory
write
in interface RandomAccessFileOrMemory
b
- the byte to be written.
java.io.IOException
public void write(byte[] b) throws java.io.IOException
RandomAccessFileOrMemory
write
in interface RandomAccessFileOrMemory
b
- the data.
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
RandomAccessFileOrMemory
write
in interface RandomAccessFileOrMemory
b
- the data.off
- the start offset in the data.len
- the number of bytes to write.
java.io.IOException
public void setLength(long newLength) throws java.io.IOException
RandomAccessFileOrMemory
setLength
in interface RandomAccessFileOrMemory
java.io.IOException
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |