com.atlassian.confluence.core
Class InputStreamExceptionDecorator

java.lang.Object
  extended by java.io.InputStream
      extended by com.atlassian.confluence.core.InputStreamExceptionDecorator
All Implemented Interfaces:
java.io.Closeable

public class InputStreamExceptionDecorator
extends java.io.InputStream

Decorator for potential IOExceptions thrown by an InputStream.

Since:
5.2

Constructor Summary
InputStreamExceptionDecorator(java.io.InputStream delegate, com.google.common.base.Function<java.io.IOException,java.io.IOException> exceptionDecorator)
           
 
Method Summary
 int available()
           
 void close()
           
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InputStreamExceptionDecorator

public InputStreamExceptionDecorator(java.io.InputStream delegate,
                                     com.google.common.base.Function<java.io.IOException,java.io.IOException> exceptionDecorator)
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

skip

public long skip(long n)
          throws java.io.IOException
Overrides:
skip in class java.io.InputStream
Throws:
java.io.IOException

available

public int available()
              throws java.io.IOException
Overrides:
available in class java.io.InputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException

reset

public void reset()
           throws java.io.IOException
Overrides:
reset in class java.io.InputStream
Throws:
java.io.IOException

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

mark

public void mark(int readlimit)
Overrides:
mark in class java.io.InputStream

markSupported

public boolean markSupported()
Overrides:
markSupported in class java.io.InputStream


Copyright © 2003-2014 Atlassian. All Rights Reserved.