at.gv.egiz.pdfas.impl.input.helper
Class DataSourceHelper
java.lang.Object
at.gv.egiz.pdfas.impl.input.helper.DataSourceHelper
- public class DataSourceHelper
- extends Object
- Author:
- wprinz
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSourceHelper
public DataSourceHelper()
convertDataSourceToByteArray
public static byte[] convertDataSourceToByteArray(DataSource pdfDataSource)
- Deprecated.
- Converts a PdfDataSource to a byte array.
Note that this function is very memory intensive. Use the Streams whereever
possible.
- Parameters:
pdfDataSource -
- Returns:
-
- Throws:
IOException
convertInputStreamToByteArray
public static byte[] convertInputStreamToByteArray(InputStream inputStream)
convertInputStreamToByteArrayIOEx
public static byte[] convertInputStreamToByteArrayIOEx(InputStream inputStream)
throws IOException
- Throws:
IOException
debugDataSourceToFile
public static void debugDataSourceToFile(DataSource dataSource,
File file)
Copyright © 2006-2010. All Rights Reserved.