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.FileNotFoundException
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 interface java.lang.AutoCloseable
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()
Copyright © 2015 Pegasystems Inc. All Rights Reserved.