com.mockobjects.io
Class MockFileInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FileInputStream
          extended bycom.mockobjects.io.MockFileInputStream

public class MockFileInputStream
extends java.io.FileInputStream


Field Summary
static java.lang.String KNOWN_FILE
           
 
Method Summary
 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)
           
 
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
 

Field Detail

KNOWN_FILE

public static final java.lang.String KNOWN_FILE
See Also:
Constant Field Values
Method Detail

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.