public class TemporaryFileDataSource extends FileDataSource
DEFAULT_INTRO_LIMIT, MARK_WORKAROUND_PROPERTY| Constructor | Description |
|---|---|
TemporaryFileDataSource(java.io.InputStream baseStream,
java.lang.String name) |
Constructs a new DataSource by reading the contents of an
input stream.
|
TemporaryFileDataSource(java.io.InputStream baseStream,
java.lang.String name,
java.lang.String prefix,
java.lang.String suffix,
java.io.File directory) |
Constructs a new DataSource by reading the contents of an
input stream.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
finalize() |
Deletes the temporary data file.
|
java.net.URL |
getURL() |
Returns null, since the data is not represented by a
persistent object.
|
close, forceCompression, getCompression, getHybridInputStream, getInputStream, getInputStream, getIntro, getIntroLimit, getLength, getMarkWorkaround, getName, getPosition, getSystemId, makeDataSource, makeDataSource, setCompression, setIntroLimit, setMarkWorkaround, setName, setPosition, toStringgetFile, getRawInputStream, getRawLengthpublic TemporaryFileDataSource(java.io.InputStream baseStream,
java.lang.String name)
throws java.io.IOException
baseStream - the stream which supplies this source's dataname - the name of the sourcejava.io.IOExceptionpublic TemporaryFileDataSource(java.io.InputStream baseStream,
java.lang.String name,
java.lang.String prefix,
java.lang.String suffix,
java.io.File directory)
throws java.io.IOException
File.createTempFile(String,String,File).baseStream - the stream which supplies this source's dataname - the name of the sourceprefix - the prefix string to be used in generating the file's
name; must be at least three characters longsuffix - the suffix string to be used in generating the file's
name; may be null, in which case the suffix ".tmp" will be
useddirectory - the directory in which the file is to be created, or
null if the default temporary-file directory is to be usedjava.io.IOExceptionpublic java.net.URL getURL()
getURL in class FileDataSourcepublic void finalize()
finalize in class java.lang.ObjectCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.