com.atlassian.gzipfilter.util
Class IOUtils

java.lang.Object
  extended by com.atlassian.gzipfilter.util.IOUtils

public class IOUtils
extends java.lang.Object

Some utility methods, copied from org.apache.commons.io.IOUtils

Copyright 2001-2004 The Apache Software Foundation.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


Constructor Summary
IOUtils()
           
 
Method Summary
static void closeQuietly(java.io.InputStream input)
          Unconditionally close an InputStream.
static void closeQuietly(java.io.OutputStream output)
          Unconditionally close an OutputStream.
static void closeQuietly(java.io.Reader input)
          Unconditionally close an Reader.
static void closeQuietly(java.io.Writer output)
          Unconditionally close a Writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOUtils

public IOUtils()
Method Detail

closeQuietly

public static void closeQuietly(java.io.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(java.io.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(java.io.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(java.io.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 © 2008 Atlassian Pty Ltd. All Rights Reserved.