public final class AdobePathReader extends Object
Shape object from an Adobe Photoshop Path resource.| Constructor and Description |
|---|
AdobePathReader(byte[] data)
Creates a path reader that will read its data from a
byte array. |
AdobePathReader(DataInput data)
Creates a path reader that will read its data from a
DataInput,
such as an ImageInputStream. |
| Modifier and Type | Method and Description |
|---|---|
Path2D |
readPath()
Builds the path by reading from the supplied input.
|
public AdobePathReader(DataInput data)
DataInput,
such as an ImageInputStream.
The data length is assumed to be a multiple of 26.data - the input to read data from.IllegalArgumentException - if data is nullpublic AdobePathReader(byte[] data)
byte array.
The array length must be a multiple of 26, and greater than 0.data - the array to read data from.IllegalArgumentException - if data is null, or not a multiple of 26.public Path2D readPath() throws IOException
IIOException - if the input contains a bad path data.IOException - if a general I/O exception occurs during reading.Copyright © 2023. All rights reserved.