public class FileStream extends Stream
| Modifier and Type | Field and Description |
|---|---|
static int |
APPEND |
static int |
CREATE |
static int |
OPEN |
static int |
READ |
static int |
READ_WRITE |
static int |
WRITE |
SEEK_CURRENT, SEEK_END, SEEK_SET| Constructor and Description |
|---|
FileStream(java.io.File file,
int fileMode,
int fileAccess) |
FileStream(java.lang.String fileName,
int fileMode) |
FileStream(java.lang.String fileName,
int fileMode,
int fileAccess) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
long |
getLength() |
int |
read(byte[] buf) |
int |
read(byte[] buf,
int start,
int len) |
int |
readByte() |
long |
seek(long offset,
int seek) |
void |
setLength(long len) |
void |
write(byte[] buf) |
void |
write(byte[] buf,
int start,
int len) |
void |
writeByte(int b) |
copyTo, getInputStream, getOutputStream, read, wrap, wrap, writepublic static final int CREATE
public static final int OPEN
public static final int APPEND
public static final int READ
public static final int WRITE
public static final int READ_WRITE
public FileStream(java.lang.String fileName,
int fileMode,
int fileAccess)
throws java.io.IOException
java.io.IOExceptionpublic FileStream(java.lang.String fileName,
int fileMode)
throws java.io.IOException
java.io.IOExceptionpublic FileStream(java.io.File file,
int fileMode,
int fileAccess)
throws java.io.IOException
java.io.IOExceptionpublic long getLength()
throws java.io.IOException
public void setLength(long len)
throws java.io.IOException
public int readByte()
throws java.io.IOException
public int read(byte[] buf)
throws java.io.IOException
public int read(byte[] buf,
int start,
int len)
throws java.io.IOException
public void write(byte[] buf)
throws java.io.IOException
public void write(byte[] buf,
int start,
int len)
throws java.io.IOException
public void writeByte(int b)
throws java.io.IOException
public long seek(long offset,
int seek)
throws java.io.IOException
public void close()
throws java.io.IOException