Class GFAdapterHelper

java.lang.Object
org.verapdf.features.gf.tools.GFAdapterHelper

public final class GFAdapterHelper extends Object
Helps in creating similar nodes in different features objects
Author:
Maksim Bezrukov
  • Method Details

    • inputStreamToByteArray

      public static byte[] inputStreamToByteArray(InputStream is) throws IOException
      Generates byte array with contents of a stream
      Parameters:
      is - input stream for converting
      Returns:
      byte array with contents of a stream
      Throws:
      IOException - If the first byte cannot be read for any reason other than end of file, or if the input stream has been closed, or if some other I/O error occurs.
    • getStringFromASAtom

      public static String getStringFromASAtom(ASAtom asAtom)
    • getStringFromCOSObject

      public static String getStringFromCOSObject(COSObject object)