public class MockFileInputStream
extends java.io.FileInputStream
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KNOWN_FILE |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
mark(int readlimit) |
static MockFileInputStream |
newMockFileInputStream() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
setupContents(java.lang.String contents) |
long |
skip(long n) |
public static final java.lang.String KNOWN_FILE
public static MockFileInputStream newMockFileInputStream()
public int available()
throws java.io.IOException
available in class java.io.FileInputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark in class java.io.InputStreampublic int read()
throws java.io.IOException
read in class java.io.FileInputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.FileInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FileInputStreamjava.io.IOExceptionpublic void setupContents(java.lang.String contents)
public long skip(long n)
throws java.io.IOException
skip in class java.io.FileInputStreamjava.io.IOExceptionCopyright © 2002 Mock Objects. All Rights Reserved.