public class PROutputStream
extends java.io.OutputStream
OutputStream that writes to a JDBC data store.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
VERSION |
| Constructor and Description |
|---|
PROutputStream(PRFile aFile)
Creates a new instance of PROutputStream to write file contents
to the underlying file store.
|
PROutputStream(PRFile aFile,
boolean aAppend)
Creates a new instance of PROutputStream to write file contents
to the underlying file store.
|
PROutputStream(java.lang.String aFileSpec)
Creates a new instance of PROutputStream to write file contents
to the underlying file store.
|
PROutputStream(java.lang.String aFileSpec,
boolean aAppend)
Creates a new instance of PROutputStream to write file contents
to the underlying file store.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this output stream and writes the contents of the file
to the underlying file storage.
|
void |
write(byte[] b)
Write the specified byte to this output stream.
|
void |
write(byte[] b,
int off,
int len)
Write a portion of an array of bytes.
|
void |
write(int b)
Write the specified byte to this output stream.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String VERSION
public PROutputStream(java.lang.String aFileSpec)
throws java.io.IOException
aFileSpec - URL specification for the file to be opened for writingjava.io.IOExceptionpublic PROutputStream(java.lang.String aFileSpec,
boolean aAppend)
throws java.io.IOException
aFileSpec - URL specification for the file to be opened for writingaAppend - if true, then bytes will be written
to the end of the file rather than the beginningjava.io.IOExceptionpublic PROutputStream(PRFile aFile) throws java.io.IOException
aFile - the file to be opened for writingjava.io.IOExceptionpublic PROutputStream(PRFile aFile, boolean aAppend) throws java.io.IOException
aFile - the file to be opened for writing.aAppend - if true, then bytes will be written
to the end of the file rather than the beginningjava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamb - the byte to be writtenjava.io.IOException - If an I/O error occursByteArrayOutputStream.write(int)public void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamb - Buffer of charactersjava.io.IOException - If an I/O error occursOutputStream.write(byte[])public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamb - Buffer of bytesoff - Offset from which to start writing characterslen - Number of characters to writejava.io.IOException - If an I/O error occursByteArrayOutputStream.write(byte[], int, int)public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionCopyright © 2014 Pegasystems Inc. All Rights Reserved.