Interface ICOSVisitor

All Known Implementing Classes:
COSWriter

public interface ICOSVisitor
An interface for visiting a PDF document at the type (COS) level.
  • Method Details

    • 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.