Class Overview
An OutputStream you can create on a ParcelFileDescriptor, which will
take care of calling ParcelFileDescritor.close() for you when the stream is closed.
Summary
Public Methods |
void
|
write(byte[] buffer)
Writes the entire contents of the byte array buffer to this
stream.
|
void
|
write(int oneByte)
Writes the specified byte oneByte to this stream.
|
void
|
write(byte[] buffer, int offset, int count)
Writes count bytes from the byte array buffer starting at
offset to this stream.
|
[Expand]
Inherited Methods |
From class android.os.ParcelFileDescriptor.AutoCloseOutputStream
void
|
close()
Closes this stream.
|
|
From class java.io.FileOutputStream
void
|
close()
Closes this stream.
|
void
|
finalize()
Frees any resources allocated for this stream before it is garbage
collected.
|
FileChannel
|
getChannel()
Returns the FileChannel equivalent to this output stream.
|
final
FileDescriptor
|
getFD()
Returns a FileDescriptor which represents the lowest level representation
of an operating system stream resource.
|
void
|
write(byte[] buffer)
Writes the entire contents of the byte array buffer to this
stream.
|
void
|
write(int oneByte)
Writes the specified byte oneByte to this stream.
|
void
|
write(byte[] buffer, int offset, int count)
Writes count bytes from the byte array buffer starting at
offset to this stream.
|
|
From class java.io.OutputStream
void
|
close()
Closes this stream.
|
void
|
flush()
Flushes this stream.
|
void
|
write(byte[] buffer)
Writes the entire contents of the byte array buffer to this
stream.
|
abstract
void
|
write(int oneByte)
Writes a single byte to this stream.
|
void
|
write(byte[] buffer, int offset, int count)
Writes count bytes from the byte array buffer starting at
position offset to this stream.
|
|
From class java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Is called before the object's memory is being reclaimed by the VM.
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of Class which represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
|
From interface java.io.Closeable
abstract
void
|
close()
Closes the object and release any system resources it holds.
|
|
From interface java.io.Flushable
abstract
void
|
flush()
Flushes the object by writing out any buffered data to the underlying
output.
|
|
Public Constructors
Public Methods
public
void
write
(byte[] buffer)
Writes the entire contents of the byte array buffer
to this
stream.
Parameters
buffer
| the buffer to be written to the file. |
public
void
write
(int oneByte)
Writes the specified byte oneByte
to this stream. Only the low
order byte of the integer oneByte
is written.
Parameters
oneByte
| the byte to be written. |
public
void
write
(byte[] buffer, int offset, int count)
Writes count
bytes from the byte array buffer
starting at
offset
to this stream.
Parameters
buffer
| the buffer to write to this stream. |
offset
| the index of the first byte in buffer to write. |
count
| the number of bytes from buffer to write. |