barcode4j 2.1.0

org.krysalis.barcode4j.tools
Class IOUtil

java.lang.Object
  extended by org.krysalis.barcode4j.tools.IOUtil

public class IOUtil
extends java.lang.Object

Utility functions for I/O operations.


Constructor Summary
IOUtil()
           
 
Method Summary
static void closeQuietly(java.io.InputStream in)
          Closes an InputStream.
static void closeQuietly(java.io.Reader reader)
          Closes a Reader.
static void copy(java.io.InputStream in, java.io.OutputStream out)
          Copies the contents of an InputStream to an OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOUtil

public IOUtil()
Method Detail

copy

public static void copy(java.io.InputStream in,
                        java.io.OutputStream out)
                 throws java.io.IOException
Copies the contents of an InputStream to an OutputStream.

Parameters:
in - the input stream
out - the output stream
Throws:
java.io.IOException - if an I/O error occurs

closeQuietly

public static void closeQuietly(java.io.InputStream in)
Closes an InputStream. It ignores any exceptions happening while closing the stream.

Parameters:
in - the input stream

closeQuietly

public static void closeQuietly(java.io.Reader reader)
Closes a Reader. It ignores any exceptions happening while closing the stream.

Parameters:
reader - the reader

barcode4j 2.1.0

Copyright © 2000-2010 Jeremias Maerki. All rights reserved.