com.atlassian.confluence.core
Class InputStreamExceptionDecorator
java.lang.Object
java.io.InputStream
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)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
InputStreamExceptionDecorator
public InputStreamExceptionDecorator(java.io.InputStream delegate,
com.google.common.base.Function<java.io.IOException,java.io.IOException> exceptionDecorator)
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-2013 Atlassian. All Rights Reserved.