public class SaContentStream extends InputStream
InputStream
extension to stream the document content. InputStream
to extend the stream with filename extension for the backend.InputStream
methods to the underlying stream, injected by the constructor.Constructor and Description |
---|
SaContentStream(InputStream in,
String newFileName)
Contructor.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
boolean |
equals(Object obj) |
String |
getFileName() |
int |
hashCode() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
public SaContentStream(InputStream in, String newFileName)
in
- Input streamnewFileName
- Content file name. Note that the path will be cut off if
contained when the document is stored in the archive.public int read() throws IOException
read
in class InputStream
IOException
- IO exceptionInputStream.read()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
- IO exceptionInputStream.close()
public void reset() throws IOException
reset
in class InputStream
IOException
- IO exceptionInputStream.reset()
public String getFileName()
public int available() throws IOException
available
in class InputStream
IOException
- IO exceptionInputStream.available()
public void mark(int readlimit)
mark
in class InputStream
InputStream.mark(int)
public boolean markSupported()
markSupported
in class InputStream
InputStream.markSupported()
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
InputStream.read(byte[], int, int)
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
InputStream.read(byte[])
public long skip(long n) throws IOException
skip
in class InputStream
IOException
InputStream.skip(long)
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.