public class ArchiveEntryInputStream extends RAInputStream
Modifier and Type | Method and Description |
---|---|
int |
available()
Returns the number of bytes that can be read (or skipped over) from this
random access input stream without blocking by the next caller of a
method for this input stream.
|
void |
close() |
long |
getOffset() |
long |
length() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
long |
readLong() |
void |
refresh() |
void |
seek(long localPos) |
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int available() throws java.io.IOException
RAInputStream
This abstract class is extended by RAFolderInputStream
and
RAFileInputStream
The available
method returns -1
when no
more data because the end of the stream has been reached.
and returns Integer.MAX_VALUE
when bytes of data is larger
then Integer.MAX_VALUE.
available
in class RAInputStream
java.io.IOException
public long getOffset() throws java.io.IOException
getOffset
in class RAInputStream
java.io.IOException
public long length() throws java.io.IOException
length
in class RAInputStream
java.io.IOException
public void readFully(byte[] b, int off, int len) throws java.io.IOException
readFully
in class RAInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int readInt() throws java.io.IOException
readInt
in class RAInputStream
java.io.IOException
public long readLong() throws java.io.IOException
readLong
in class RAInputStream
java.io.IOException
public void refresh() throws java.io.IOException
refresh
in class RAInputStream
java.io.IOException
public void seek(long localPos) throws java.io.IOException
seek
in class RAInputStream
java.io.IOException
Copyright © 2014 OpenText Corp. All rights reserved.