Package org.apache.pdfbox.cos
Interface ICOSVisitor
- All Known Implementing Classes:
COSWriter
public interface ICOSVisitor
An interface for visiting a PDF document at the type (COS) level.
-
Method Summary
Modifier and TypeMethodDescriptionvisitFromArray
(COSArray obj) Notification of visit to Array object.Notification of visit to boolean object.Notification of visit to dictionary object.Notification of visit to document object.visitFromFloat
(COSFloat obj) Notification of visit to float object.visitFromInt
(COSInteger obj) Notification of visit to integer object.visitFromName
(COSName obj) Notification of visit to name object.visitFromNull
(COSNull obj) Notification of visit to null object.visitFromStream
(COSStream obj) Notification of visit to stream object.visitFromString
(COSString obj) Notification of visit to string object.
-
Method Details
-
visitFromArray
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
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
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
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
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
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
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
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
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
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.
-