|
||||||||||
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.PRWriter
public class PRWriter
PRWriter
is thin wrapper around java.io.Writer and simply
attempts to write out the byte order marks for UTF-8 if that is indeed
the encoding to be used to write to the stream.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
copyright |
static java.lang.String |
VERSION
version id |
Constructor Summary | |
---|---|
PRWriter(java.io.File aFile,
java.lang.String aEncoding)
Deprecated. |
|
PRWriter(java.io.OutputStream aOutStream,
java.lang.String aEncoding)
Creates a new PRWriter from the specified OutputStream . |
|
PRWriter(PRFile aFile,
java.lang.String aEncoding)
|
|
PRWriter(java.lang.String aFileSpec,
java.lang.String aEncoding)
Creates a new PRWriter from the specified aFilePathName . |
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 PRWriter(java.io.OutputStream aOutStream, java.lang.String aEncoding) throws java.io.UnsupportedEncodingException, java.io.IOException
PRWriter
from the specified OutputStream
.
aOutStream
- The output streamaEncoding
- The encoding type to use. See PRFileUtil.ENCODING_* types
java.io.UnsupportedEncodingException
java.io.IOException
public PRWriter(java.io.File aFile, java.lang.String aEncoding) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException, java.io.IOException
PRWriter
from the specified aFile
.
aFile
- The fileaEncoding
- The encoding type to use. See PRFileUtil.ENCODING_* types
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
java.io.IOException
public PRWriter(PRFile aFile, java.lang.String aEncoding) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException, java.io.IOException
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
java.io.IOException
public PRWriter(java.lang.String aFileSpec, java.lang.String aEncoding) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException, java.io.IOException
PRWriter
from the specified aFilePathName
.
aFileSpec
- The URL specification for the fileaEncoding
- The encoding type to use. See PRFileUtil.ENCODING_* types
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
java.io.IOException
Method Detail |
---|
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.Writer
java.io.IOException
OutputStreamWriter.close()
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
OutputStreamWriter.flush()
public void write(char[] aCbuf, int aOff, int aLen) throws java.io.IOException
write
in class java.io.Writer
aCbuf
- 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 |