|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.activation.FileDataSource
com.altair.hwm.beans.utils.HWMFileDataSource
public class HWMFileDataSource
Title: HWMFileDataSource
Description: This data source will take in a file and when an input stream is required, it will return a GZipInputStream
Company: Altair Engineering, Inc.
Constructor Summary | |
---|---|
HWMFileDataSource(java.io.File file,
boolean bCompress)
Constructor |
Method Summary | |
---|---|
java.lang.String |
getContentType()
get the content type |
java.io.File |
getFile()
Get the file object |
java.io.InputStream |
getInputStream()
Get the inputstream for the file |
java.lang.String |
getName()
Returns the name of the file |
java.io.OutputStream |
getOutputStream()
Get the outputstream for the file |
void |
setFileTypeMap(javax.activation.FileTypeMap fileMap)
Set the file type map |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HWMFileDataSource(java.io.File file, boolean bCompress)
file
- The file for which this acts like a sourcebCompress
- If true, the file is compressedMethod Detail |
---|
public java.lang.String getContentType()
getContentType
in interface javax.activation.DataSource
getContentType
in class javax.activation.FileDataSource
public java.io.File getFile()
getFile
in class javax.activation.FileDataSource
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface javax.activation.DataSource
getOutputStream
in class javax.activation.FileDataSource
java.io.IOException
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface javax.activation.DataSource
getInputStream
in class javax.activation.FileDataSource
java.io.IOException
public void setFileTypeMap(javax.activation.FileTypeMap fileMap)
setFileTypeMap
in class javax.activation.FileDataSource
fileMao
- The file type map for this filepublic java.lang.String getName()
getName
in interface javax.activation.DataSource
getName
in class javax.activation.FileDataSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |