Top Description Fields Constructors Methods
org.h2.value.lob

public final Class LobDataFile

extends LobData
Class Inheritance
Imports
java.io.BufferedInputStream, .InputStream, org.h2.engine.Constants, .SysProperties, org.h2.store.DataHandler, .FileStore, .FileStoreInputStream, org.h2.store.fs.FileUtils, org.h2.value.ValueLob

LOB data stored in a temporary file.

Field Summary

Modifier and TypeField and Description
private final String
fileName

If the LOB is a temporary LOB being managed by a temporary ResultSet, it is stored in a temporary file.

private DataHandler
private final FileStore

Constructor Summary

AccessConstructor and Description
public
LobDataFile(DataHandler handler, String fileName, FileStore tempFile)

Method Summary

Modifier and TypeMethod and Description
public DataHandler
public InputStream
getInputStream(long
octet length of the stream, or -1 if unknown
precision
)

Implements abstract org.h2.value.lob.LobData.getInputStream.

Get stream to read LOB data from

public void
remove(ValueLob
to remove
value
)

Overrides org.h2.value.lob.LobData.remove.

Remove the underlying resource, if any.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.h2.value.lob.LobData:
getMemoryisLinkedToTable

Field Detail

fileNameback to summary
private final String fileName

If the LOB is a temporary LOB being managed by a temporary ResultSet, it is stored in a temporary file.

handlerback to summary
private DataHandler handler
tempFileback to summary
private final FileStore tempFile

Constructor Detail

LobDataFileback to summary
public LobDataFile(DataHandler handler, String fileName, FileStore tempFile)

Method Detail

getDataHandlerback to summary
public DataHandler getDataHandler()

Overrides org.h2.value.lob.LobData.getDataHandler.

Annotations
@Override
getInputStreamback to summary
public InputStream getInputStream(long precision)

Implements abstract org.h2.value.lob.LobData.getInputStream.

Doc from org.h2.value.lob.LobData.getInputStream.

Get stream to read LOB data from

Parameters
precision:long

octet length of the stream, or -1 if unknown

Returns:InputStream

stream to read LOB data from

Annotations
@Override
removeback to summary
public void remove(ValueLob value)

Overrides org.h2.value.lob.LobData.remove.

Doc from org.h2.value.lob.LobData.remove.

Remove the underlying resource, if any. For values that are kept fully in memory this method has no effect.

Parameters
value:ValueLob

to remove

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override