Package com.tom_roush.pdfbox.cos
Interface ICOSVisitor
-
- All Known Implementing Classes:
COSWriter
public interface ICOSVisitorAn interface for visiting a PDF document at the type (COS) level.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectvisitFromArray(COSArray obj)Notification of visit to Array object.ObjectvisitFromBoolean(COSBoolean obj)Notification of visit to boolean object.ObjectvisitFromDictionary(COSDictionary obj)Notification of visit to dictionary object.ObjectvisitFromDocument(COSDocument obj)Notification of visit to document object.ObjectvisitFromFloat(COSFloat obj)Notification of visit to float object.ObjectvisitFromInt(COSInteger obj)Notification of visit to integer object.ObjectvisitFromName(COSName obj)Notification of visit to name object.ObjectvisitFromNull(COSNull obj)Notification of visit to null object.ObjectvisitFromStream(COSStream obj)Notification of visit to stream object.ObjectvisitFromString(COSString obj)Notification of visit to string object.
-
-
-
Method Detail
-
visitFromArray
Object visitFromArray(COSArray obj) throws IOException
Notification of visit to Array object.- Parameters:
obj- The Object that is being visited.- Returns:
- any Object depending on the visitor implementation, or null
- Throws:
IOException- If there is an error while visiting this object.
-
visitFromBoolean
Object visitFromBoolean(COSBoolean obj) throws IOException
Notification of visit to boolean object.- Parameters:
obj- The Object that is being visited.- Returns:
- any Object depending on the visitor implementation, or null
- Throws:
IOException- If there is an error while visiting this object.
-
visitFromDictionary
Object visitFromDictionary(COSDictionary obj) throws IOException
Notification of visit to dictionary object.- Parameters:
obj- The Object that is being visited.- Returns:
- any Object depending on the visitor implementation, or null
- Throws:
IOException- If there is an error while visiting this object.
-
visitFromDocument
Object visitFromDocument(COSDocument obj) throws IOException
Notification of visit to document object.- Parameters:
obj- The Object that is being visited.- Returns:
- any Object depending on the visitor implementation, or null
- Throws:
IOException- If there is an error while visiting this object.
-
visitFromFloat
Object visitFromFloat(COSFloat obj) throws IOException
Notification of visit to float object.- Parameters:
obj- The Object that is being visited.- Returns:
- any Object depending on the visitor implementation, or null
- Throws:
IOException- If there is an error while visiting this object.
-
visitFromInt
Object visitFromInt(COSInteger obj) throws IOException
Notification of visit to integer object.- Parameters:
obj- The Object that is being visited.- Returns:
- any Object depending on the visitor implementation, or null
- Throws:
IOException- If there is an error while visiting this object.
-
visitFromName
Object visitFromName(COSName obj) throws IOException
Notification of visit to name object.- Parameters:
obj- The Object that is being visited.- Returns:
- any Object depending on the visitor implementation, or null
- Throws:
IOException- If there is an error while visiting this object.
-
visitFromNull
Object visitFromNull(COSNull obj) throws IOException
Notification of visit to null object.- Parameters:
obj- The Object that is being visited.- Returns:
- any Object depending on the visitor implementation, or null
- Throws:
IOException- If there is an error while visiting this object.
-
visitFromStream
Object visitFromStream(COSStream obj) throws IOException
Notification of visit to stream object.- Parameters:
obj- The Object that is being visited.- Returns:
- any Object depending on the visitor implementation, or null
- Throws:
IOException- If there is an error while visiting this object.
-
visitFromString
Object visitFromString(COSString obj) throws IOException
Notification of visit to string object.- Parameters:
obj- The Object that is being visited.- Returns:
- any Object depending on the visitor implementation, or null
- Throws:
IOException- If there is an error while visiting this object.
-
-