|
||||||||||
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 storepublic 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.InputStream
java.io.IOException
BufferedInputStream.read()
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
b
-
java.io.IOException
FilterInputStream.read(byte[])
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
b
- off
- len
-
java.io.IOException
BufferedInputStream.read(byte[], int, int)
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
n
-
java.io.IOException
BufferedInputStream.skip(long)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
BufferedInputStream.close()
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
BufferedInputStream.available()
public void mark(int readlimit)
mark
in class java.io.InputStream
readlimit
- BufferedInputStream.mark(int)
public boolean markSupported()
markSupported
in class java.io.InputStream
true
if mark() supportedBufferedInputStream.markSupported()
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
BufferedInputStream.reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |