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.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 beginningjava.io.IOException
public PROutputStream(PRFile aFile) throws java.io.IOException
aFile
- the file to be opened for writingjava.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 beginningjava.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
b
- 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.OutputStream
b
- 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.OutputStream
b
- 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.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
Copyright © 2015 Pegasystems Inc. All Rights Reserved.