public class SerializableInputStream extends InputStream implements Serializable
| Constructor and Description |
|---|
SerializableInputStream(byte[] array) |
SerializableInputStream(File tempFile) |
SerializableInputStream(org.apache.commons.fileupload.FileItem fi) |
SerializableInputStream(File tempFile,
String name) |
SerializableInputStream(InputStream wrapped,
long s) |
SerializableInputStream(SerializableInputStream is) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_readObject(ObjectInputStream oin) |
protected void |
_writeObject(ObjectOutputStream out) |
void |
close() |
boolean |
equals(Object o) |
void |
finalize() |
byte[] |
get() |
String |
getContentType() |
(package private) File |
getFile() |
String |
getFileName() |
String |
getName() |
long |
getSize() |
int |
hashCode() |
protected static boolean |
inputStreamEquals(SerializableInputStream in1,
SerializableInputStream in2) |
void |
mark(int readlimit) |
boolean |
markSupported() |
void |
moveTo(File f) |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
void |
setContentType(MimeType ct) |
long |
skip(long n) |
static byte[] |
toByteArray(InputStream stream) |
String |
toString() |
availablepublic SerializableInputStream(InputStream wrapped, long s)
public SerializableInputStream(File tempFile, String name) throws IOException
IOExceptionpublic SerializableInputStream(File tempFile) throws IOException
IOExceptionpublic SerializableInputStream(byte[] array)
public SerializableInputStream(org.apache.commons.fileupload.FileItem fi)
throws IOException
IOExceptionSerializableInputStream(SerializableInputStream is) throws IOException
IOExceptionpublic static byte[] toByteArray(InputStream stream)
public long getSize()
public String getName()
public String getContentType()
public void setContentType(MimeType ct)
public byte[] get()
throws IOException
IOExceptionpublic void moveTo(File f)
protected void _writeObject(ObjectOutputStream out) throws IOException
IOExceptionprotected void _readObject(ObjectInputStream oin) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionprotected static boolean inputStreamEquals(SerializableInputStream in1, SerializableInputStream in2) throws IOException
IOExceptionFile getFile()
public String getFileName()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}