Package org.h2.value.lob
Class LobDataFile
- java.lang.Object
-
- org.h2.value.lob.LobData
-
- org.h2.value.lob.LobDataFile
-
public final class LobDataFile extends LobData
LOB data stored in a temporary file.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
fileName
If the LOB is a temporary LOB being managed by a temporary ResultSet, it is stored in a temporary file.private DataHandler
handler
private FileStore
tempFile
-
Constructor Summary
Constructors Constructor Description LobDataFile(DataHandler handler, java.lang.String fileName, FileStore tempFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataHandler
getDataHandler()
java.io.InputStream
getInputStream(long precision)
Get stream to read LOB data fromvoid
remove(ValueLob value)
Remove the underlying resource, if any.java.lang.String
toString()
-
Methods inherited from class org.h2.value.lob.LobData
getMemory, isLinkedToTable
-
-
-
-
Field Detail
-
handler
private DataHandler handler
-
fileName
private final java.lang.String fileName
If the LOB is a temporary LOB being managed by a temporary ResultSet, it is stored in a temporary file.
-
tempFile
private final FileStore tempFile
-
-
Constructor Detail
-
LobDataFile
public LobDataFile(DataHandler handler, java.lang.String fileName, FileStore tempFile)
-
-
Method Detail
-
remove
public void remove(ValueLob value)
Description copied from class:LobData
Remove the underlying resource, if any. For values that are kept fully in memory this method has no effect.
-
getInputStream
public java.io.InputStream getInputStream(long precision)
Description copied from class:LobData
Get stream to read LOB data from- Specified by:
getInputStream
in classLobData
- Parameters:
precision
- octet length of the stream, or -1 if unknown- Returns:
- stream to read LOB data from
-
getDataHandler
public DataHandler getDataHandler()
- Overrides:
getDataHandler
in classLobData
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-