com.mockobjects.io
Class MockFileInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FileInputStream
          extended by com.mockobjects.io.MockFileInputStream
All Implemented Interfaces:
java.io.Closeable

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
Overrides:
available in class java.io.FileInputStream
Throws:
java.io.IOException

mark

public void mark(int readlimit)
Overrides:
mark in class java.io.InputStream

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.FileInputStream
Throws:
java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException
Overrides:
read in class java.io.FileInputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.FileInputStream
Throws:
java.io.IOException

setupContents

public void setupContents(java.lang.String contents)

skip

public long skip(long n)
          throws java.io.IOException
Overrides:
skip in class java.io.FileInputStream
Throws:
java.io.IOException


Copyright © 2002 Mock Objects. All Rights Reserved.