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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
visitFromArray(COSArray obj)
Notification of visit to Array object.java.lang.Object
visitFromBoolean(COSBoolean obj)
Notification of visit to boolean object.java.lang.Object
visitFromDictionary(COSDictionary obj)
Notification of visit to dictionary object.java.lang.Object
visitFromDocument(COSDocument obj)
Notification of visit to document object.java.lang.Object
visitFromFloat(COSFloat obj)
Notification of visit to float object.java.lang.Object
visitFromInt(COSInteger obj)
Notification of visit to integer object.java.lang.Object
visitFromName(COSName obj)
Notification of visit to name object.java.lang.Object
visitFromNull(COSNull obj)
Notification of visit to null object.java.lang.Object
visitFromStream(COSStream obj)
Notification of visit to stream object.java.lang.Object
visitFromString(COSString obj)
Notification of visit to string object.
-
-
-
Method Detail
-
visitFromArray
java.lang.Object visitFromArray(COSArray obj) throws java.io.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:
java.io.IOException
- If there is an error while visiting this object.
-
visitFromBoolean
java.lang.Object visitFromBoolean(COSBoolean obj) throws java.io.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:
java.io.IOException
- If there is an error while visiting this object.
-
visitFromDictionary
java.lang.Object visitFromDictionary(COSDictionary obj) throws java.io.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:
java.io.IOException
- If there is an error while visiting this object.
-
visitFromDocument
java.lang.Object visitFromDocument(COSDocument obj) throws java.io.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:
java.io.IOException
- If there is an error while visiting this object.
-
visitFromFloat
java.lang.Object visitFromFloat(COSFloat obj) throws java.io.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:
java.io.IOException
- If there is an error while visiting this object.
-
visitFromInt
java.lang.Object visitFromInt(COSInteger obj) throws java.io.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:
java.io.IOException
- If there is an error while visiting this object.
-
visitFromName
java.lang.Object visitFromName(COSName obj) throws java.io.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:
java.io.IOException
- If there is an error while visiting this object.
-
visitFromNull
java.lang.Object visitFromNull(COSNull obj) throws java.io.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:
java.io.IOException
- If there is an error while visiting this object.
-
visitFromStream
java.lang.Object visitFromStream(COSStream obj) throws java.io.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:
java.io.IOException
- If there is an error while visiting this object.
-
visitFromString
java.lang.Object visitFromString(COSString obj) throws java.io.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:
java.io.IOException
- If there is an error while visiting this object.
-
-