Class ArchiveEntryInputStream
java.lang.Object
java.io.InputStream
org.eclipse.birt.core.archive.RAInputStream
org.eclipse.birt.core.archive.compound.ArchiveEntryInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
RAInputStream implementation based on the ArchiveEntry.
-
Method Summary
Modifier and TypeMethodDescriptionint
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
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) Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
available
Description copied from class:RAInputStream
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. The next caller might be the same thread or another thread.This abstract class is extended by
RAFolderInputStream
andRAFileInputStream
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.- Specified by:
available
in classRAInputStream
- Throws:
IOException
-
getOffset
- Specified by:
getOffset
in classRAInputStream
- Throws:
IOException
-
length
- Specified by:
length
in classRAInputStream
- Throws:
IOException
-
readFully
- Specified by:
readFully
in classRAInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
readInt
- Specified by:
readInt
in classRAInputStream
- Returns:
- Throws:
IOException
-
readLong
- Specified by:
readLong
in classRAInputStream
- Throws:
IOException
-
refresh
- Specified by:
refresh
in classRAInputStream
- Throws:
IOException
-
seek
- Specified by:
seek
in classRAInputStream
- Throws:
IOException
-