public class PRWriter
extends java.io.Writer
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.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
copyright
|
static java.lang.String |
VERSION
version id
|
| Constructor and Description |
|---|
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(java.io.OutputStream aOutStream,
java.lang.String aEncoding,
boolean aIncludeBOM)
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. |
public static final java.lang.String COPYRIGHT
public static final java.lang.String VERSION
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_* typesjava.io.UnsupportedEncodingExceptionjava.io.IOExceptionpublic PRWriter(java.io.OutputStream aOutStream,
java.lang.String aEncoding,
boolean aIncludeBOM)
throws java.io.UnsupportedEncodingException,
java.io.IOException
PRWriter from the specified OutputStream.aOutStream - The output streamaEncoding - The encoding type to use. See PRFileUtil.ENCODING_* typesaIncludeBOM - if the ultimate encoding is UTF-8, then a BOM will be included if aIncludeBOM is true
and the default file encoding is NOT UTF-8.java.io.UnsupportedEncodingExceptionjava.io.IOExceptionpublic 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_* typesjava.io.FileNotFoundExceptionjava.io.UnsupportedEncodingExceptionjava.io.IOExceptionpublic PRWriter(PRFile aFile, java.lang.String aEncoding) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException, java.io.IOException
java.io.FileNotFoundExceptionjava.io.UnsupportedEncodingExceptionjava.io.IOExceptionpublic 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_* typesjava.io.FileNotFoundExceptionjava.io.UnsupportedEncodingExceptionjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose 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 writejava.io.IOException - If an I/O error occursOutputStreamWriter.write(char[], int, int)Copyright © 2014 Pegasystems Inc. All Rights Reserved.