Package com.mockobjects.io
Class MockFileInputStream
java.lang.Object
java.io.InputStream
java.io.FileInputStream
com.mockobjects.io.MockFileInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint
void
mark
(int readlimit) static MockFileInputStream
int
read()
int
read
(byte[] b) int
read
(byte[] b, int off, int len) void
setupContents
(String contents) long
skip
(long n) Methods inherited from class java.io.FileInputStream
close, getChannel, getFD, readAllBytes, readNBytes
Methods inherited from class java.io.InputStream
markSupported, nullInputStream, readNBytes, reset, skipNBytes, transferTo
-
Field Details
-
KNOWN_FILE
- See Also:
-
-
Method Details
-
newMockFileInputStream
-
available
- Overrides:
available
in classFileInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
mark
in classInputStream
-
read
- Overrides:
read
in classFileInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFileInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFileInputStream
- Throws:
IOException
-
setupContents
-
skip
- Overrides:
skip
in classFileInputStream
- Throws:
IOException
-