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.FileInputStream
java.io.IOException
public void mark(int readlimit)
mark
in class java.io.InputStream
public int read() throws java.io.IOException
read
in class java.io.FileInputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.FileInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FileInputStream
java.io.IOException
public void setupContents(java.lang.String contents)
public long skip(long n) throws java.io.IOException
skip
in class java.io.FileInputStream
java.io.IOException
Copyright © 2002 Mock Objects. All Rights Reserved.