com.hammingweight.hammock.mocks.io
Class MockReader
java.lang.Object
java.io.Reader
com.hammingweight.hammock.mocks.io.MockReader
- All Implemented Interfaces:
- IMockObject
public class MockReader
- extends java.io.Reader
- implements IMockObject
Fields inherited from class java.io.Reader |
lock |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MTHD_CLOSE
public static final MockMethod MTHD_CLOSE
MTHD_MARK_$_INT
public static final MockMethod MTHD_MARK_$_INT
MTHD_MARK_SUPPORTED
public static final MockMethod MTHD_MARK_SUPPORTED
MTHD_READ
public static final MockMethod MTHD_READ
MTHD_READY
public static final MockMethod MTHD_READY
MTHD_READ_$_ARRAY_CHAR
public static final MockMethod MTHD_READ_$_ARRAY_CHAR
MTHD_READ_$_ARRAY_CHAR_INT_INT
public static final MockMethod MTHD_READ_$_ARRAY_CHAR_INT_INT
MTHD_RESET
public static final MockMethod MTHD_RESET
MTHD_SKIP_$_LONG
public static final MockMethod MTHD_SKIP_$_LONG
MockReader
public MockReader(java.lang.Object arg0)
MockReader
public MockReader(java.lang.Object arg0,
IInvocationHandler handler)
MockReader
public MockReader()
MockReader
public MockReader(IInvocationHandler handler)
setInvocationHandler
public final void setInvocationHandler(IInvocationHandler handler)
- Description copied from interface:
IMockObject
- Sets the invocation handler that the mock object should use to evaluate
method invocations.
- Specified by:
setInvocationHandler
in interface IMockObject
- Parameters:
handler
- The invocation handler to be used by the mock object.
getInvocationHandler
public final IInvocationHandler getInvocationHandler()
- Description copied from interface:
IMockObject
- Gets the invocation handler that the mock object uses to evaluate method
invocations.
- Specified by:
getInvocationHandler
in interface IMockObject
- Returns:
- The invocation handler used by the mock object.
close
public void close()
throws java.io.IOException
- Specified by:
close
in class java.io.Reader
- Throws:
java.io.IOException
mark
public void mark(int arg0)
throws java.io.IOException
- Overrides:
mark
in class java.io.Reader
- Throws:
java.io.IOException
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class java.io.Reader
read
public int read()
throws java.io.IOException
- Overrides:
read
in class java.io.Reader
- Throws:
java.io.IOException
ready
public boolean ready()
throws java.io.IOException
- Overrides:
ready
in class java.io.Reader
- Throws:
java.io.IOException
read
public int read(char[] arg0)
throws java.io.IOException
- Overrides:
read
in class java.io.Reader
- Throws:
java.io.IOException
read
public int read(char[] arg0,
int arg1,
int arg2)
throws java.io.IOException
- Specified by:
read
in class java.io.Reader
- Throws:
java.io.IOException
reset
public void reset()
throws java.io.IOException
- Overrides:
reset
in class java.io.Reader
- Throws:
java.io.IOException
skip
public long skip(long arg0)
throws java.io.IOException
- Overrides:
skip
in class java.io.Reader
- Throws:
java.io.IOException