Package org.apache.ofbiz.base.util.test
Class UtilObjectTests.ErrorInjector
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.apache.ofbiz.base.util.test.UtilObjectTests.ErrorInjector
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- UtilObjectTests
public static final class UtilObjectTests.ErrorInjector extends java.io.FilterInputStream
-
-
Constructor Summary
Constructors Constructor Description ErrorInjector(java.io.InputStream in, boolean onClose)
ErrorInjector(java.io.InputStream in, int after)
ErrorInjector(java.io.InputStream in, int after, boolean onClose)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
read()
int
read(byte[] buf)
int
read(byte[] buf, int offset, int length)
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException
- Overrides:
read
in classjava.io.FilterInputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] buf) throws java.io.IOException
- Overrides:
read
in classjava.io.FilterInputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] buf, int offset, int length) throws java.io.IOException
- Overrides:
read
in classjava.io.FilterInputStream
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.FilterInputStream
- Throws:
java.io.IOException
-
-