public final class PBAdapterHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static double[] |
castFloatArrayToDouble(float[] array) |
static InputStream |
getMetadataStream(PDMetadata metadata) |
static String |
getStringFromBase(COSBase baseParam)
Gets String value from COSBase class
|
static byte[] |
inputStreamToByteArray(InputStream is)
Generates byte array with contents of a stream
|
static double[] |
parseFloatMatrix(float[][] array) |
static double[] |
parseRectangle(PDRectangle rect) |
public static String getStringFromBase(COSBase baseParam)
baseParam - COSBase objectpublic static byte[] inputStreamToByteArray(InputStream is) throws IOException
is - input stream for convertingIOException - 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.public static InputStream getMetadataStream(PDMetadata metadata)
public static double[] parseFloatMatrix(float[][] array)
public static double[] castFloatArrayToDouble(float[] array)
public static double[] parseRectangle(PDRectangle rect)
Copyright © 2015–2020 The veraPDF Consortium. All rights reserved.