|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.openfoundation.io.XPOutputStream com.plumtree.openfoundation.io.XPFileOutputStream
public class XPFileOutputStream
XPFileOutputStream corresponds to java.io.FileOutputStream or System.IO.FileStream.
Constructor Summary | |
---|---|
XPFileOutputStream(java.io.FileOutputStream fileStream)
Wrap the platform local equivalent in a new XPFileOutputStream. |
|
XPFileOutputStream(java.lang.String fileName)
Creates a new XPFileOutputStream object by opening a connection to an actual file named by the filename. |
|
XPFileOutputStream(java.lang.String fileName,
boolean append)
Creates a new XPFileOutputStream object by opening a connection to an actual file named by the filename. |
Method Summary | |
---|---|
void |
Close()
Close the underlying stream. |
void |
Flush()
Flush the underlying stream. |
java.io.OutputStream |
GetUnderlyingObject()
Return a reference to the underyling stream. |
void |
Write(byte[] buffer)
Write an array of bytes to the underlying output stream. |
void |
Write(byte[] buffer,
int offset,
int count)
Write out part of a byte array to the underlying output stream. |
void |
Write(int b)
Writes the specified byte to this output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XPFileOutputStream(java.io.FileOutputStream fileStream)
fileStream
- a FileOutputStream objectpublic XPFileOutputStream(java.lang.String fileName)
fileName
- the system-dependent file namepublic XPFileOutputStream(java.lang.String fileName, boolean append)
fileName
- the system-dependent file nameappend
- if true, then bytes will be written to the end of the file rather than the beginningMethod Detail |
---|
public void Close()
Close
in class XPOutputStream
public void Flush()
Flush
in class XPOutputStream
public void Write(int b)
XPOutputStream
Write
in class XPOutputStream
b
- the byte.public void Write(byte[] buffer)
Write
in class XPOutputStream
buffer
- the data.public void Write(byte[] buffer, int offset, int count)
Write
in class XPOutputStream
buffer
- the data.offset
- the start offset in the data.count
- the number of bytes to write.public java.io.OutputStream GetUnderlyingObject()
GetUnderlyingObject
in class XPOutputStream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |