Class TFileInputStream
- java.lang.Object
-
- java.io.InputStream
-
- de.mirkosertic.bytecoder.classlib.java.io.TFileInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class TFileInputStream extends java.io.InputStream
-
-
Constructor Summary
Constructors Constructor Description TFileInputStream(java.io.File file)TFileInputStream(java.io.FileDescriptor fdObj)TFileInputStream(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()private intavailable0(java.io.FileDescriptor fd)voidclose()java.io.FileDescriptorgetFD()private voidopen(java.lang.String name)Opens the specified file for reading.private intopen0(java.io.FileDescriptor fd, java.lang.String name)Opens the specified file for reading.intread()intread(byte[] b)intread(byte[] b, int off, int len)private intread0(java.io.FileDescriptor fd)private intreadBytes(java.io.FileDescriptor df, byte[] b, int off, int len)longskip(long n)private longskip0(java.io.FileDescriptor fd, int n)
-
-
-
Constructor Detail
-
TFileInputStream
public TFileInputStream(java.lang.String name) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
TFileInputStream
public TFileInputStream(java.io.File file) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
TFileInputStream
public TFileInputStream(java.io.FileDescriptor fdObj)
-
-
Method Detail
-
open0
private int open0(java.io.FileDescriptor fd, java.lang.String name) throws java.io.FileNotFoundExceptionOpens the specified file for reading.- Parameters:
name- the name of the file- Throws:
java.io.FileNotFoundException
-
open
private void open(java.lang.String name) throws java.io.FileNotFoundExceptionOpens the specified file for reading.- Parameters:
name- the name of the file- Throws:
java.io.FileNotFoundException
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read0
private int read0(java.io.FileDescriptor fd) throws java.io.IOException- Throws:
java.io.IOException
-
readBytes
private int readBytes(java.io.FileDescriptor df, byte[] b, int off, int len) throws java.io.IOException- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException- Overrides:
skipin classjava.io.InputStream- Throws:
java.io.IOException
-
skip0
private long skip0(java.io.FileDescriptor fd, int n) throws java.io.IOException- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException- Overrides:
availablein classjava.io.InputStream- Throws:
java.io.IOException
-
available0
private int available0(java.io.FileDescriptor fd) throws java.io.IOException- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.InputStream
-
getFD
public final java.io.FileDescriptor getFD() throws java.io.IOException- Throws:
java.io.IOException
-
-