com.sentilla.io
Interface Output

All Known Subinterfaces:
DataOutput, DataOutputStream, DataRandomAccess, ObjectOutput, ObjectOutputStream, ObjectRandomAccess, OutputStream, RandomAccessFile
All Known Implementing Classes:
ByteBuffer, RemoteRandomAccessFile

public interface Output

Provides methods for writing byte data.


Method Summary
 void close()
          Close the underlying media.
 void flush()
          Ensure that all previous writes have been committed.
 void write(byte[] b)
          Write an array of bytes.
 void write(byte[] b, int offset, int length)
          Write a series of bytes.
 void write(int b)
          Write a single byte.
 

Method Detail

write

void write(int b)
           throws IORuntimeException
Write a single byte.

Throws:
IORuntimeException

write

void write(byte[] b)
           throws IORuntimeException
Write an array of bytes.

Throws:
IORuntimeException

write

void write(byte[] b,
           int offset,
           int length)
           throws IORuntimeException
Write a series of bytes.

Parameters:
offset - within b defining start of series.
length - number of bytes to write.
Throws:
IORuntimeException

flush

void flush()
           throws IORuntimeException
Ensure that all previous writes have been committed.

Throws:
IORuntimeException

close

void close()
           throws IORuntimeException
Close the underlying media. No more writes will be successful.

Throws:
IORuntimeException


Copyright © 2007 Sentilla Corporation. All Rights Reserved.