Return-Path: X-Original-To: apmail-pdfbox-commits-archive@www.apache.org Delivered-To: apmail-pdfbox-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 35AEB18D7A for ; Mon, 16 Nov 2015 19:21:01 +0000 (UTC) Received: (qmail 89523 invoked by uid 500); 16 Nov 2015 19:21:01 -0000 Delivered-To: apmail-pdfbox-commits-archive@pdfbox.apache.org Received: (qmail 89478 invoked by uid 500); 16 Nov 2015 19:21:01 -0000 Mailing-List: contact commits-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list commits@pdfbox.apache.org Received: (qmail 89450 invoked by uid 99); 16 Nov 2015 19:21:00 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Nov 2015 19:21:00 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C14A3E083A; Mon, 16 Nov 2015 19:21:00 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: msahyoun@apache.org To: commits@pdfbox.apache.org Date: Mon, 16 Nov 2015 19:21:00 -0000 Message-Id: <8678630bed394f3295a8f7e5b112881d@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [01/51] [partial] pdfbox-docs git commit: Site checkin for project Apache PDFBox Website Repository: pdfbox-docs Updated Branches: refs/heads/asf-site aa929f46c -> 3ca1d144f http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/3ca1d144/content/docs/1.8.10/javadocs/org/apache/pdfbox/io/IOUtils.html ---------------------------------------------------------------------- diff --git a/content/docs/1.8.10/javadocs/org/apache/pdfbox/io/IOUtils.html b/content/docs/1.8.10/javadocs/org/apache/pdfbox/io/IOUtils.html new file mode 100644 index 0000000..3ce64b3 --- /dev/null +++ b/content/docs/1.8.10/javadocs/org/apache/pdfbox/io/IOUtils.html @@ -0,0 +1,363 @@ + + + + + + +IOUtils (Apache PDFBox 1.8.10 API) + + + + + + + + + + + +
+
org.apache.pdfbox.io
+

Class IOUtils

+
+
+ +
+
    +
  • +
    +
    +
    public class IOUtils
    +extends Object
    +
    This class contains various I/O-related methods.
    +
    Version:
    +
    $Revision$
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        toByteArray

        +
        public static byte[] toByteArray(InputStream in)
        +                          throws IOException
        +
        Reads the input stream and returns its contents as a byte array.
        +
        Parameters:
        in - the input stream to read from.
        +
        Returns:
        the byte array
        +
        Throws:
        +
        IOException - if an I/O error occurs
        +
      • +
      + + + +
        +
      • +

        copy

        +
        public static long copy(InputStream input,
        +        OutputStream output)
        +                 throws IOException
        +
        Copies all the contents from the given input stream to the given output stream.
        +
        Parameters:
        input - the input stream
        output - the output stream
        +
        Returns:
        the number of bytes that have been copied
        +
        Throws:
        +
        IOException - if an I/O error occurs
        +
      • +
      + + + +
        +
      • +

        populateBuffer

        +
        public static long populateBuffer(InputStream in,
        +                  byte[] buffer)
        +                           throws IOException
        +
        Populates the given buffer with data read from the input stream. If the data doesn't + fit the buffer, only the data that fits in the buffer is read. If the data is less than + fits in the buffer, the buffer is not completely filled.
        +
        Parameters:
        in - the input stream to read from
        buffer - the buffer to fill
        +
        Returns:
        the number of bytes written to the buffer
        +
        Throws:
        +
        IOException - if an I/O error occurs
        +
      • +
      + + + +
        +
      • +

        closeQuietly

        +
        public static void closeQuietly(InputStream input)
        +
        Unconditionally close an InputStream. +

        + Equivalent to InputStream.close(), except any exceptions will be ignored. + This is typically used in finally blocks.

        +
        Parameters:
        input - the InputStream to close, may be null or already closed
        +
      • +
      + + + +
        +
      • +

        closeQuietly

        +
        public static void closeQuietly(Reader input)
        +
        Unconditionally close an Reader. +

        + Equivalent to Reader.close(), except any exceptions will be ignored. + This is typically used in finally blocks.

        +
        Parameters:
        input - the Reader to close, may be null or already closed
        +
      • +
      + + + +
        +
      • +

        closeQuietly

        +
        public static void closeQuietly(Writer output)
        +
        Unconditionally close a Writer. +

        + Equivalent to Writer.close(), except any exceptions will be ignored. + This is typically used in finally blocks.

        +
        Parameters:
        output - the Writer to close, may be null or already closed
        +
      • +
      + + + +
        +
      • +

        closeQuietly

        +
        public static void closeQuietly(OutputStream output)
        +
        Unconditionally close an OutputStream. +

        + Equivalent to OutputStream.close(), except any exceptions will be ignored. + This is typically used in finally blocks.

        +
        Parameters:
        output - the OutputStream to close, may be null or already closed
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.

+ + \ No newline at end of file