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 data
public int readWord() throws IOException
IOException
public int readShort() throws IOException
IOException
public int readInt() throws IOException
IOException
public int readByte() throws IOException
IOException
public void skip(int len) throws IOException
len
- amount of bytes needed to skip
IOException
public int getLength()
public Color readColor() throws IOException
Color
from the InputStream. This reads 4 bytes.
IOException
Copyright © 1998–2020 iText Group NV. All rights reserved.