public class PRInputStream
extends java.io.InputStream
InputStream that reads files from a
JDBC data store.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
VERSION |
| Constructor and Description |
|---|
PRInputStream(PRFile aFile) |
PRInputStream(java.lang.String aFileSpec)
Creates an instance of
PRInputStream to read file contents
from the underlying file storage. |
| Modifier and Type | Method and Description |
|---|---|
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)
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String VERSION
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 filejava.io.FileNotFoundException - if the specified file does not exist in the underlying
file storepublic PRInputStream(PRFile aFile) throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic java.lang.String getURLSpecification()
public int read()
throws java.io.IOException
BufferedInputStream.readread 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 interface java.lang.AutoCloseableclose 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()Copyright © 2014 Pegasystems Inc. All Rights Reserved.