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