Package org.verapdf.features.gf.tools
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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getStringFromASAtom(ASAtom asAtom)
static String
getStringFromCOSObject(COSObject object)
static byte[]
inputStreamToByteArray(InputStream is)
Generates byte array with contents of a stream
-
-
-
Method Detail
-
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.
-
-