|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
com.pega.pegarules.pub.util.PRInputStream
public class PRInputStream
Implementation of InputStream that reads files from a
JDBC data store.
| Field Summary | |
|---|---|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
VERSION
|
| Constructor Summary | |
|---|---|
PRInputStream(PRFile aFile)
|
|
PRInputStream(java.lang.String aFileSpec)
Creates an instance of PRInputStream to read file contents
from the underlying file storage. |
|
| Method Summary | |
|---|---|
int |
available()
Identical to BufferedInputStream.available() |
void |
close()
Identical to BufferedInputStream.close() |
java.lang.String |
getURLSpecification()
Returns the URL specification for the file (absolutePathName) |
void |
mark(int readlimit)
Identical to BufferedInputStream.mark(int) |
boolean |
markSupported()
Identical to BufferedInputStream.markSupported() |
int |
read()
Identical to BufferedInputStream.read |
int |
read(byte[] b)
Identical to BufferedInputStream.read(byte[]) |
int |
read(byte[] b,
int off,
int len)
Identical to BufferedInputStream.read(byte[], int, int) |
void |
reset()
Identical to BufferedInputStream.reset() |
long |
skip(long n)
Identical to BufferedInputStream.skip(long) |
| 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 PRInputStream(java.lang.String aFileSpec)
throws java.io.FileNotFoundException
PRInputStream to read file contents
from the underlying file storage.
aFileSpec - URL specification for the file
java.io.FileNotFoundException - if the specified file does not exist in the underlying
file store
public PRInputStream(PRFile aFile)
throws java.io.FileNotFoundException
java.io.FileNotFoundException| Method Detail |
|---|
public java.lang.String getURLSpecification()
public int read()
throws java.io.IOException
BufferedInputStream.read
read in class java.io.InputStreamjava.io.IOExceptionBufferedInputStream.read()
public int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamb -
java.io.IOExceptionFilterInputStream.read(byte[])
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamb - off - len -
java.io.IOExceptionBufferedInputStream.read(byte[], int, int)
public long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamn -
java.io.IOExceptionBufferedInputStream.skip(long)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOExceptionBufferedInputStream.close()
public int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionBufferedInputStream.available()public void mark(int readlimit)
mark in class java.io.InputStreamreadlimit - BufferedInputStream.mark(int)public boolean markSupported()
markSupported in class java.io.InputStreamtrue if mark() supportedBufferedInputStream.markSupported()
public void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionBufferedInputStream.reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||