|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
java.io.BufferedInputStream
org.norther.tammi.acorn.io.UnicodeInputStream
org.norther.tammi.acorn.io.FileInputStream
public class FileInputStream
A buffered file input stream.
| Field Summary |
|---|
| Fields inherited from class java.io.BufferedInputStream |
|---|
buf, count, marklimit, markpos, pos |
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
FileInputStream(File file)
Constructs a new stream for a file. |
|
FileInputStream(FileDescriptor fdObj)
Constructs a new stream for a file descriptor. |
|
FileInputStream(FileDescriptor fdObj,
String enc)
Constructs a new stream for a file descriptor with an encoding check. |
|
FileInputStream(File file,
String enc)
Constructs a new stream for a file with an encoding check. |
|
FileInputStream(String name)
Constructs a new stream for a named file. |
|
FileInputStream(String name,
String enc)
Constructs a new stream for a named file with an encoding check. |
|
| Method Summary | |
|---|---|
void |
close()
|
protected void |
finalize()
|
FileChannel |
getChannel()
Gets file channel of this stream. |
FileDescriptor |
getFD()
Gets file descriptor of this stream. |
String |
getPath()
Gets file path of this stream. |
| Methods inherited from class org.norther.tammi.acorn.io.UnicodeInputStream |
|---|
getEncoding, read, read, skip |
| Methods inherited from class java.io.BufferedInputStream |
|---|
available, mark, markSupported, reset |
| Methods inherited from class java.io.FilterInputStream |
|---|
read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileInputStream(File file)
throws FileNotFoundException
file - the file.
FileNotFoundException - if not found.public FileInputStream(FileDescriptor fdObj)
fdObj - the file descriptor.
public FileInputStream(String name)
throws FileNotFoundException
name - the file name.
FileNotFoundException - if not found.
public FileInputStream(File file,
String enc)
throws FileNotFoundException,
IOException
file - the file.enc - an optional default encoding.
FileNotFoundException - if not found.
IOException - on I/O errors.
public FileInputStream(FileDescriptor fdObj,
String enc)
throws IOException
fdObj - the file descriptor.enc - an optional default encoding.
IOException - on I/O errors.
public FileInputStream(String name,
String enc)
throws FileNotFoundException,
IOException
name - the file name.enc - an optional default encoding.
FileNotFoundException - if not found.
IOException - on I/O errors.| Method Detail |
|---|
public void close()
throws IOException
close in interface Closeableclose in class UnicodeInputStreamIOException
public final FileDescriptor getFD()
throws IOException
IOException - on I/O errors.public FileChannel getChannel()
public String getPath()
protected void finalize()
finalize in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||