public class TemporaryFileDataSource extends FileDataSource
DEFAULT_INTRO_LIMIT, MARK_WORKAROUND_PROPERTY
Constructor and 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 and Description |
---|---|
java.net.URL |
getURL()
Returns
null , since the data is not represented by a
persistent object. |
getFile, getRawInputStream, getRawLength
close, forceCompression, getCompression, getHybridInputStream, getInputStream, getInputStream, getIntro, getIntroLimit, getLength, getMarkWorkaround, getName, getPosition, getSystemId, makeDataSource, makeDataSource, makeDataSource, setCompression, setIntroLimit, setMarkWorkaround, setName, setPosition, toString
public 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.IOException
public 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.IOException
public java.net.URL getURL()
null
, since the data is not represented by a
persistent object.getURL
in class FileDataSource
null