public class GZIPFileDataSource extends Object implements DataSource
| 构造器和说明 |
|---|
GZIPFileDataSource(File f,
String zipExtension) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
void |
setFile(File file)
Set the File to use for the data source.
|
void |
setZipExtension(String ext)
Set the zip extension to use.
|
public String getContentType()
getContentType 在接口中 DataSourcepublic InputStream getInputStream() throws IOException
getInputStream 在接口中 DataSourceIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream 在接口中 DataSourceIOExceptionpublic void setZipExtension(String ext)
ext - The zip extension.public void setFile(File file)
file - The file.public String getName()
getName 在接口中 DataSourceCopyright © 2021. All rights reserved.