public class TemporaryFileDataSource extends FileDataSource
DEFAULT_INTRO_LIMIT, MARK_WORKAROUND_PROPERTY| Constructor and Description |
|---|
TemporaryFileDataSource(InputStream baseStream,
String name)
Constructs a new DataSource by reading the contents of an
input stream.
|
TemporaryFileDataSource(InputStream baseStream,
String name,
String prefix,
String suffix,
File directory)
Constructs a new DataSource by reading the contents of an
input stream.
|
| Modifier and Type | Method and Description |
|---|---|
URL |
getURL()
Returns
null, since the data is not represented by a
persistent object. |
getFile, getRawInputStream, getRawLengthclose, forceCompression, getCompression, getHybridInputStream, getInputStream, getInputStream, getIntro, getIntroLimit, getLength, getMarkWorkaround, getName, getPosition, getSystemId, makeDataSource, makeDataSource, makeDataSource, setCompression, setIntroLimit, setMarkWorkaround, setName, setPosition, toStringpublic TemporaryFileDataSource(InputStream baseStream, String name) throws IOException
baseStream - the stream which supplies this source's dataname - the name of the sourceIOExceptionpublic TemporaryFileDataSource(InputStream baseStream, String name, String prefix, String suffix, File directory) throws 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 usedIOExceptionpublic URL getURL()
null, since the data is not represented by a
persistent object.getURL in class FileDataSourcenullCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.