Package org.apache.pdfbox.pdfwriter

Examples of org.apache.pdfbox.pdfwriter.COSFilterInputStream


   * @return a byte array containing only the signed part of the content
   * @throws IOException if the pdfFile can't be read
   */
  public byte[] getSignedContent(InputStream pdfFile) throws IOException
  {
    COSFilterInputStream fis=null;
   
    try
    {
    fis = new COSFilterInputStream(pdfFile,getByteRange());
    return fis.toByteArray();
    }
    finally
    {
      if (fis != null)
        fis.close();
    }
  }
View Full Code Here


   * @return a byte array containing only the signed part of the content
   * @throws IOException if the pdfFile can't be read
   */
  public byte[] getSignedContent(byte[] pdfFile) throws IOException
  {
    COSFilterInputStream fis=null;
   
    try
    {
    fis = new COSFilterInputStream(pdfFile,getByteRange());
    return fis.toByteArray();
    }
    finally
    {
      if (fis != null)
        fis.close();
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.pdfbox.pdfwriter.COSFilterInputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.