|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Writer
com.pega.pegarules.pub.util.PRWriterCompressor
public class PRWriterCompressor
PRWriterCompressor is an enhanced version of PRWriter that
allows for a GZIP stream to be written at the same time as the regular
stream.
| Field Summary | |
|---|---|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
VERSION
|
| Constructor Summary | |
|---|---|
PRWriterCompressor(java.io.File aFile,
java.io.File aGZIPFile,
java.lang.String aEncoding)
Deprecated. |
|
PRWriterCompressor(java.io.OutputStream aOutStream,
java.io.OutputStream aSecondaryStream,
java.lang.String aEncoding)
Creates a new PRWriterCompressor from the specified OutputStreams. |
|
PRWriterCompressor(PRFile aFile,
PRFile aGZIPFile,
java.lang.String aEncoding)
Deprecated. |
|
PRWriterCompressor(java.lang.String aFilePathName,
java.lang.String aGZIPFilePathName,
java.lang.String aEncoding)
Create a file, and optionally, a corresponding GZIP output file |
|
| Method Summary | |
|---|---|
void |
close()
Close the stream. |
void |
flush()
Flush the stream. |
void |
write(char[] aCbuf,
int aOff,
int aLen)
Write a portion of an array of characters. |
| Methods inherited from class java.io.Writer |
|---|
append, append, append, write, write, write, write |
| 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 PRWriterCompressor(java.io.OutputStream aOutStream,
java.io.OutputStream aSecondaryStream,
java.lang.String aEncoding)
throws java.io.UnsupportedEncodingException,
java.io.IOException
PRWriterCompressor from the specified OutputStreams.
aOutStream - The output streamaEncoding - The encoding type to use. See PRFileUtil.ENCODING_* typesaSecondaryStream - The secondary output stream to be writtent to.
java.io.UnsupportedEncodingException
java.io.IOException
public PRWriterCompressor(java.io.File aFile,
java.io.File aGZIPFile,
java.lang.String aEncoding)
throws java.io.FileNotFoundException,
java.io.UnsupportedEncodingException,
java.io.IOException
PRWriter from the specified aFile.
aFile - The fileaGZIPFile - if you want a gzip version written as well.aEncoding - The encoding type to use. See PRFileUtil.ENCODING_* types
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
java.io.IOException
public PRWriterCompressor(PRFile aFile,
PRFile aGZIPFile,
java.lang.String aEncoding)
throws java.io.FileNotFoundException,
java.io.UnsupportedEncodingException,
java.io.IOException
PRWriter from the specified aFile.
aFile - The fileaGZIPFile - PRFile if you want a gzip version written as well.aEncoding - The encoding type to use. See PRFileUtil.ENCODING_* types
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
java.io.IOException
public PRWriterCompressor(java.lang.String aFilePathName,
java.lang.String aGZIPFilePathName,
java.lang.String aEncoding)
throws java.io.FileNotFoundException,
java.io.UnsupportedEncodingException,
java.io.IOException
aFilePathName - aGZIPFilePathName - aEncoding -
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
java.io.IOException| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.Writerjava.io.IOExceptionOutputStreamWriter.close()
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.Writerjava.io.IOExceptionOutputStreamWriter.flush()
public void write(char[] aCbuf,
int aOff,
int aLen)
throws java.io.IOException
write in class java.io.WriteraCbuf - Buffer of charactersaOff - Offset from which to start writing charactersaLen - Number of characters to write
java.io.IOException - If an I/O error occursOutputStreamWriter.write(char[], int, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||