|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
com.pega.pegarules.pub.util.PROutputStream
public class PROutputStream
Implementation of OutputStream
that writes to a JDBC data store.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
VERSION
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.io.OutputStream |
---|
flush |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String VERSION
Constructor Detail |
---|
public PROutputStream(java.lang.String aFileSpec) throws java.io.IOException
aFileSpec
- URL specification for the file to be opened for writing
java.io.IOException
public 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 beginning
java.io.IOException
public PROutputStream(PRFile aFile) throws java.io.IOException
aFile
- the file to be opened for writing
java.io.IOException
public 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 beginning
java.io.IOException
Method Detail |
---|
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
b
- the byte to be written
java.io.IOException
- If an I/O error occursByteArrayOutputStream.write(int)
public void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
b
- Buffer of characters
java.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.OutputStream
b
- Buffer of bytesoff
- Offset from which to start writing characterslen
- Number of characters to write
java.io.IOException
- If an I/O error occursByteArrayOutputStream.write(byte[], int, int)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.OutputStream
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |