FileDownloadRandomAccessFilepublic interface FileDownloadOutputStream
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes this output stream and releases any system resources associated with this stream.
|
void |
flushAndSync() |
Flush all buffer to system and force all system buffers to synchronize with the underlying
device.
|
void |
seek(long offset) |
Sets the file-pointer offset, measured from the beginning of this file, at which the next
read or write occurs.
|
void |
setLength(long newLength) |
Sets the length of this file.
|
void |
write(byte[] b,
int off,
int len) |
Writes
len bytes from the specified byte array
starting at offset off to this file. |
void write(byte[] b,
int off,
int len)
throws java.io.IOException
len bytes from the specified byte array
starting at offset off to this file.java.io.IOExceptionvoid flushAndSync()
throws java.io.IOException
java.io.IOExceptionvoid close()
throws java.io.IOException
close is that it closes the output stream. A closed stream
cannot perform output operations and cannot be reopened.java.io.IOExceptionvoid seek(long offset)
throws java.io.IOException,
java.lang.IllegalAccessException
java.io.IOExceptionjava.lang.IllegalAccessExceptionvoid setLength(long newLength)
throws java.io.IOException,
java.lang.IllegalAccessException
java.io.IOExceptionjava.lang.IllegalAccessException