com.mockobjects.io
Class MockFileInputStream
java.lang.Object
java.io.InputStream
java.io.FileInputStream
com.mockobjects.io.MockFileInputStream
- public class MockFileInputStream
- extends java.io.FileInputStream
Methods inherited from class java.io.FileInputStream |
close, getChannel, getFD |
Methods inherited from class java.io.InputStream |
markSupported, reset |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KNOWN_FILE
public static final java.lang.String KNOWN_FILE
- See Also:
- Constant Field Values
newMockFileInputStream
public static MockFileInputStream newMockFileInputStream()
available
public int available()
throws java.io.IOException
- Throws:
java.io.IOException
mark
public void mark(int readlimit)
read
public int read()
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read(byte[] b)
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
setupContents
public void setupContents(java.lang.String contents)
skip
public long skip(long n)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2002 Mock Objects. All Rights Reserved.