public class InputMeta extends Object
| Constructor and Description |
|---|
InputMeta(InputStream in)
Creates an InputMeta object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
Get the amount of bytes read and/or skipped from the InputStream.
|
int |
readByte()
Read the next byte from the InputStream.
|
Color |
readColor()
Read the next
Color from the InputStream. |
int |
readInt()
Read the next int from the InputStream.
|
int |
readShort()
Read the next short from the InputStream.
|
int |
readWord()
Read the next word from the InputStream.
|
void |
skip(int len)
Skips "len" amount of bytes from the InputStream.
|
public InputMeta(InputStream in)
in - InputStream containing the WMF datapublic int readWord()
throws IOException
IOExceptionpublic int readShort()
throws IOException
IOExceptionpublic int readInt()
throws IOException
IOExceptionpublic int readByte()
throws IOException
IOExceptionpublic void skip(int len)
throws IOException
len - amount of bytes needed to skipIOExceptionpublic int getLength()
public Color readColor() throws IOException
Color from the InputStream. This reads 4 bytes.IOExceptionCopyright © 1998–2016 iText Group NV. All rights reserved.