|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.michab.simulator.mos6502.c64.SystemFile
Represents a file system file object. This is a value object used as a file abstraction that can be used also in a WebStart environment.
Constructor Summary | |
SystemFile(java.io.File file)
Convenience constructor. |
|
SystemFile(java.lang.String name,
java.io.InputStream is)
Create a system file. |
|
SystemFile(java.lang.String name,
java.io.InputStream is,
int size)
Create a system file. |
Method Summary | |
byte[] |
getContent()
Get the file's content. |
int |
getLength()
Get the length of the system file. |
java.lang.String |
getName()
Returns the name of this system file for display purposes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SystemFile(java.io.File file) throws java.io.IOException
file
- The file to read from.public SystemFile(java.lang.String name, java.io.InputStream is) throws java.io.IOException
size
argument.
name
- The name to be displayed.is
- An input stream used for reading the content.
java.io.IOException
- In case of io errors.SystemFile(String, InputStream, int)
public SystemFile(java.lang.String name, java.io.InputStream is, int size) throws java.io.IOException
name
- The name to be displayed.is
- An input stream used for reading the content.size
- The expected number of bytes to be read.
java.io.IOException
- In case of io errors.SystemFile(String, InputStream )
Method Detail |
public java.lang.String getName()
public int getLength()
public byte[] getContent()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |