Package org.krysalis.barcode4j.tools
Class IOUtil
java.lang.Object
org.krysalis.barcode4j.tools.IOUtil
Utility functions for I/O operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCloses anInputStream.static voidcloseQuietly(Reader reader) Closes aReader.static voidcopy(InputStream in, OutputStream out) Copies the contents of an InputStream to an OutputStream.
-
Constructor Details
-
IOUtil
public IOUtil()
-
-
Method Details
-
copy
Copies the contents of an InputStream to an OutputStream.- Parameters:
in- the input streamout- the output stream- Throws:
IOException- if an I/O error occurs
-
closeQuietly
Closes anInputStream. It ignores any exceptions happening while closing the stream.- Parameters:
in- the input stream
-
closeQuietly
Closes aReader. It ignores any exceptions happening while closing the stream.- Parameters:
reader- the reader
-