com.atlassian.confluence.util.io
Class IOUtils

java.lang.Object
  extended by com.atlassian.confluence.util.io.IOUtils

Deprecated. since 3.0 use IOUtils instead

@Deprecated
public class IOUtils
extends java.lang.Object

General purpose java.io package utilities methods.

See Also:
IOUtils

Constructor Summary
IOUtils()
          Deprecated.  
 
Method Summary
static void close(java.io.InputStream i)
          Deprecated. since 3.0 use IOUtils.closeQuietly(InputStream)
static void close(java.io.OutputStream o)
          Deprecated. since 3.0 use IOUtils.closeQuietly(OutputStream)
static void close(java.io.Reader r)
          Deprecated. since 3.0 use IOUtils.closeQuietly(Reader)
static void close(java.io.Writer w)
          Deprecated. since 3.0 use IOUtils.closeQuietly(Writer)
static void copy(java.io.InputStream i, java.io.OutputStream o)
          Deprecated. since 3.0 use IOUtils instead
static java.io.File createTmpDir(java.lang.String prefix, java.lang.String suffix)
          Deprecated. since 3.0 because it was only used in tests
static void flushAndClose(java.io.OutputStream o)
          Deprecated. since 3.0 use OutputStream.flush() followed by IOUtils.closeQuietly(OutputStream)
static void flushAndClose(java.io.Writer w)
          Deprecated. since 3.0 use Writer.flush() followed by IOUtils.closeQuietly(Writer)
static byte[] readInputStream(java.io.InputStream stream)
          Deprecated. since 3.0 because it was only used in tests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOUtils

public IOUtils()
Deprecated. 
Method Detail

close

@Deprecated
public static void close(java.io.InputStream i)
Deprecated. since 3.0 use IOUtils.closeQuietly(InputStream)


flushAndClose

@Deprecated
public static void flushAndClose(java.io.OutputStream o)
Deprecated. since 3.0 use OutputStream.flush() followed by IOUtils.closeQuietly(OutputStream)

Deprecated because it is not used in Confluence.


close

@Deprecated
public static void close(java.io.OutputStream o)
Deprecated. since 3.0 use IOUtils.closeQuietly(OutputStream)


close

@Deprecated
public static void close(java.io.Reader r)
Deprecated. since 3.0 use IOUtils.closeQuietly(Reader)


close

@Deprecated
public static void close(java.io.Writer w)
Deprecated. since 3.0 use IOUtils.closeQuietly(Writer)


flushAndClose

@Deprecated
public static void flushAndClose(java.io.Writer w)
Deprecated. since 3.0 use Writer.flush() followed by IOUtils.closeQuietly(Writer)

Deprecated because it is not used in Confluence.


copy

@Deprecated
public static void copy(java.io.InputStream i,
                                   java.io.OutputStream o)
                 throws java.io.IOException
Deprecated. since 3.0 use IOUtils instead

Copy the contents of the input stream to the output stream and then CLOSE both streams. Note: If you do not want the streams closed, call FileUtils.copy instead.

Throws:
java.io.IOException

createTmpDir

@Deprecated
public static java.io.File createTmpDir(java.lang.String prefix,
                                                   java.lang.String suffix)
                                 throws java.io.IOException
Deprecated. since 3.0 because it was only used in tests

Throws:
java.io.IOException

readInputStream

@Deprecated
public static byte[] readInputStream(java.io.InputStream stream)
                              throws java.io.IOException
Deprecated. since 3.0 because it was only used in tests

Throws:
java.io.IOException
See Also:
IOUtils.toByteArray(InputStream)


Copyright © 2003-2013 Atlassian. All Rights Reserved.