|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ICISTransferStream
Interface used to transfer file streams back and forth from Command Client to Command Server
| Method Summary | |
|---|---|
long |
getContentLength()
|
java.lang.String |
getContentType()
|
java.lang.String |
getFileName()
|
java.io.InputStream |
getInputStream()
|
java.lang.String |
getProperty(java.lang.String key)
|
java.util.Collection |
getPropertyNames()
|
void |
setContentLength(long length)
Set the length of this stream |
void |
setContentType(java.lang.String contentType)
Set the content-type |
void |
setFile(java.io.File file)
Set this stream to point to a file. |
void |
setFileName(java.lang.String fileName)
Set the file name |
void |
setInputStream(java.io.InputStream inputStream)
Set the inputstream this object is wrapping |
void |
setProperty(java.lang.String name,
java.lang.String value)
Set an arbitrary property associated with this stream |
| Method Detail |
|---|
java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOExceptionvoid setInputStream(java.io.InputStream inputStream)
inputStream - the input stream
void setFile(java.io.File file)
throws java.io.IOException
setInputStream (new FileInputStream (file));
setFileName (file.getName ());
setContentLength (file.getLength ());
file - the file to transfer
java.io.IOExceptionjava.lang.String getContentType()
void setContentType(java.lang.String contentType)
contentType - the mime typelong getContentLength()
void setContentLength(long length)
length - the stream length or -1java.lang.String getFileName()
void setFileName(java.lang.String fileName)
fileName - the name of this filejava.lang.String getProperty(java.lang.String key)
key - the metadata key
void setProperty(java.lang.String name,
java.lang.String value)
name - property namevalue - property valuejava.util.Collection getPropertyNames()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||