Package com.drew.metadata.eps
Class EpsReader
java.lang.Object
com.drew.metadata.eps.EpsReader
Reads file passed in through SequentialReader and parses encountered data:
- Basic EPS Comments
- EXIF
- Photoshop
- IPTC
- ICC Profile
- XMP
- Max line length is 255 characters
- Lines end with a CR(0xD) or LF(0xA) character (or both, in practice)
- ':' separates keywords (considered part of the keyword)
- Whitespace is either a space(0x20) or tab(0x9)
- If there is more than one header, the 1st is truth
- Author:
- Payton Garland
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidextract(InputStream inputStream, Metadata metadata) Filter method that determines if file will contain an EPS Header.
-
Constructor Details
-
EpsReader
public EpsReader()
-
-
Method Details
-
extract
Filter method that determines if file will contain an EPS Header. If it does, it will read the necessary data and then set the position to the beginning of the PostScript data. If it does not, the position will not be changed. After both scenarios, the main extract method is called.- Parameters:
inputStream- InputStream containing filemetadata- Metadata to add directory to and extracted data- Throws:
IOException
-