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 Object

General purpose java.io package utilities methods.

See Also:
IOUtils

Constructor Summary
IOUtils()
          Deprecated.  
 
Method Summary
static void close(InputStream i)
          Deprecated. since 3.0 use IOUtils.closeQuietly(InputStream)
static void close(OutputStream o)
          Deprecated. since 3.0 use IOUtils.closeQuietly(OutputStream)
static void close(Reader r)
          Deprecated. since 3.0 use IOUtils.closeQuietly(Reader)
static void close(Writer w)
          Deprecated. since 3.0 use IOUtils.closeQuietly(Writer)
static void copy(InputStream i, OutputStream o)
          Deprecated. since 3.0 use IOUtils instead
static File createTmpDir(String prefix, String suffix)
          Deprecated. since 3.0 because it was only used in tests
static void flushAndClose(OutputStream o)
          Deprecated. since 3.0 use OutputStream.flush() followed by IOUtils.closeQuietly(OutputStream)
static void flushAndClose(Writer w)
          Deprecated. since 3.0 use Writer.flush() followed by IOUtils.closeQuietly(Writer)
static byte[] readInputStream(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(InputStream i)
Deprecated. since 3.0 use IOUtils.closeQuietly(InputStream)


flushAndClose

@Deprecated
public static void flushAndClose(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(OutputStream o)
Deprecated. since 3.0 use IOUtils.closeQuietly(OutputStream)


close

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


close

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


flushAndClose

@Deprecated
public static void flushAndClose(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(InputStream i,
                                   OutputStream o)
                 throws 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:
IOException

createTmpDir

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

Throws:
IOException

readInputStream

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

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


Copyright © 2003–2015 Atlassian. All rights reserved.