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 InputStreamIOException - IO exceptionInputStream.read()public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOException - IO exceptionInputStream.close()public void reset()
throws IOException
reset in class InputStreamIOException - IO exceptionInputStream.reset()public String getFileName()
public int available()
throws IOException
available in class InputStreamIOException - IO exceptionInputStream.available()public void mark(int readlimit)
mark in class InputStreamInputStream.mark(int)public boolean markSupported()
markSupported in class InputStreamInputStream.markSupported()public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionInputStream.read(byte[], int, int)public int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionInputStream.read(byte[])public long skip(long n)
throws IOException
skip in class InputStreamIOExceptionInputStream.skip(long)public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.