at.gv.egiz.pdfas.impl.input.helper
Class DataSourceHelper

java.lang.Object
  extended byat.gv.egiz.pdfas.impl.input.helper.DataSourceHelper

public class DataSourceHelper
extends Object

Author:
wprinz

Constructor Summary
DataSourceHelper()
           
 
Method Summary
static byte[] convertDataSourceToByteArray(DataSource pdfDataSource)
          Deprecated.  
static byte[] convertInputStreamToByteArray(InputStream inputStream)
           
static byte[] convertInputStreamToByteArrayIOEx(InputStream inputStream)
           
static void debugDataSourceToFile(DataSource dataSource, File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceHelper

public DataSourceHelper()
Method Detail

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.