public class HecByteArrayInputStream
extends java.io.ByteArrayInputStream
HecFile| Constructor and Description |
|---|
HecByteArrayInputStream(byte[] buf)
The constructor
|
HecByteArrayInputStream(byte[] buf,
HecFileImpl parentFile)
Constructor with the parent file
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read()
Over-Ridden read that checks to ensure that the buffer is filled.
|
int |
read(byte[] b,
int off,
int len)
Over-Ridden read that fills the provided byte[].
|
void |
setParentFile(HecFileImpl parentFile)
Set the parent HecFileImpl
|
long |
skip(long n) |
void |
writeToCachedFile(byte[] buf) |
public HecByteArrayInputStream(byte[] buf)
public HecByteArrayInputStream(byte[] buf,
HecFileImpl parentFile)
public void setParentFile(HecFileImpl parentFile)
public long skip(long n)
skip in class java.io.ByteArrayInputStreampublic int read()
read in class java.io.ByteArrayInputStreampublic int read(byte[] b,
int off,
int len)
read in class java.io.ByteArrayInputStreampublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.ByteArrayInputStreamjava.io.IOExceptionpublic void writeToCachedFile(byte[] buf)