public final class SwfDecoder extends BufferedInputStream
in| Constructor and Description |
|---|
SwfDecoder(byte[] b,
int swfVersion)
create a decoder that reads directly from this byte array
|
SwfDecoder(InputStream in,
int swfVersion)
create a buffering decoder that reads from this unbuffered
input stream.
|
SwfDecoder(InputStream in,
int swfVersion,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
int |
getOffset() |
void |
mark(int readlimit) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
read64() |
boolean |
readBit() |
float |
readFixed8() |
float |
readFloat() |
void |
readFully(byte[] b) |
String |
readLengthString() |
int |
readSBits(int numBits) |
int |
readSI16() |
int |
readSI32() |
String |
readString() |
int |
readUBits(int numBits) |
int |
readUI16() |
long |
readUI32() |
int |
readUI8() |
void |
reset() |
long |
skip(long len) |
void |
syncBits() |
available, close, markSupportedreadpublic SwfDecoder(byte[] b,
int swfVersion)
b - swfVersion - public SwfDecoder(InputStream in, int swfVersion)
in - swfVersion - public SwfDecoder(InputStream in, int swfVersion, int offset)
public void readFully(byte[] b)
throws IOException
IOExceptionpublic int read()
throws IOException
read in class BufferedInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class BufferedInputStreamIOExceptionpublic long skip(long len)
throws IOException
skip in class BufferedInputStreamIOExceptionpublic float readFixed8()
throws IOException
IOExceptionpublic int readUI8()
throws IOException
IOExceptionpublic int readUI16()
throws IOException
IOExceptionpublic long readUI32()
throws IOException
IOExceptionpublic int readSI32()
throws IOException
IOExceptionpublic long read64()
throws IOException
IOExceptionpublic boolean readBit()
throws IOException
IOExceptionpublic int readUBits(int numBits)
throws IOException
IOExceptionpublic int readSBits(int numBits)
throws IOException
IOExceptionpublic int readSI16()
throws IOException
IOExceptionpublic float readFloat()
throws IOException
IOExceptionpublic String readLengthString() throws IOException
IOExceptionpublic String readString() throws IOException
IOExceptionpublic void syncBits()
public int getOffset()
public void mark(int readlimit)
mark in class BufferedInputStreampublic void reset()
throws IOException
reset in class BufferedInputStreamIOExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.