| Oracle Repository API and Model Reference Guide |
java.lang.Object
|
+--java.io.InputStream
|
+--oracle.repos.services.file.ReposFileInputStream
| Method Summary | |
int |
available()
Returns the number of bytes that can be read from this input stream without blocking. |
void |
close() Closes this input stream and releases any system resources associated with the stream. |
long |
getCRC()
Returns the repository stored crc value associated with the file this stream is connected to. |
long |
getFileSize()
Returns the repository stored uncompressed file size. |
long |
getLobLen()
Returns the number of bytes actually stored in the repository for this file (the column lob length). |
int |
getMaxChunkSize()
Convenience function that returns the FileService max chunk size value. |
Date |
getTimestamp()
Returns the repository stored os_timestamp value associated with the file this stream is connected to. |
boolean |
isCompressed()
Returns true if the repos file being read is compressed, false otherwise |
void |
mark(int readlimit)
NOT SUPPORTED |
boolean |
markSupported()
Tests if this input stream supports the mark and reset methods => ALWAYS RETURNS FALSE. |
int |
read() Reads (returns) the next byte of data from this input stream. |
int |
read(byte[] b)
Reads up to b.length bytes of data from this input stream into an array of bytes. |
int |
read(byte[] b,
int offset, int len) Reads up to len bytes of data from this input stream into an array of bytes. |
(package private)
byte[] |
read(int len)
Tries to reads up to len bytes of data from this input stream into an array of bytes and returns this array If the file is compressed, this function passes on to the readCompressed() method. |
int |
readCompressed(byte[] b,
int offset, int len) Reads up to len bytes of compressed data from this input stream into an array of bytes, adding data to the buffer from offset onwards. |
void |
reset() NOT SUPPORTED |
long |
skip(long n)
Skips over and discards n bytes of data from this input stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
| Method Detail |
public int getMaxChunkSize()
public long getCRC()
public Date getTimestamp()
public long getFileSize()
public long getLobLen()
public int available()
public boolean isCompressed()
public void close()
throws FileServiceException
public void mark(int readlimit)
public boolean markSupported()
public int read()
throws FileServiceException
public int read(byte[] b)
throws FileServiceException
public int read(byte[] b,
int offset,
int len)
throws FileServiceException
b - The byte array buffer the stream data is copied intooffset - The offset from the current stream position from which to readlen - The amount of data (from offset) to read into the buffer. Len should
never be > b.length.
byte[] read(int len)
throws FileServiceException
len - The amount of data (from offset) to read into the buffer. Len should
never be > ReposFileInputStream.available().
public int readCompressed(byte[] b,
int offset,
int len)
throws FileServiceException
b - Input byte[] bufferoffset - The starting offset for data to be placed into the bufferlen - The amount of data to return in the buffer.public void reset()
public long skip(long n)
throws FileServiceException
| BM0463 - JR0670 - JDev446 | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |