Package org.eclipse.emf.cdo.spi.common
Class CDOLobStoreImpl
java.lang.Object
org.eclipse.emf.cdo.spi.common.CDOLobStoreImpl
- All Implemented Interfaces:
CDOLobStore
File-backed
CDOLobStore that stores binary and character large objects under digest-derived IDs. Identical
contents share a permanent file, while CDOLobInfo supplies the expected size used when reading it back.- Since:
- 4.0
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.common.lob.CDOLobStore
CDOLobStore.Delegating -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCDOLobStoreImpl(File folder) CDOLobStoreImpl(File folder, String digestAlgorithm) CDOLobStoreImpl(String digestAlgorithm) -
Method Summary
Modifier and TypeMethodDescriptionprotected MessageDigestgetBinary(CDOLobInfo info) getBinaryFile(byte[] id) getCharacter(CDOLobInfo info) getCharacterFile(byte[] id) protected FilelongputBinary(InputStream contents) putCharacter(Reader contents) voidsetTimeout(long timeout) toString()
-
Field Details
-
DEFAULT_DIGEST_ALGORITHM
- Since:
- 4.26
-
INSTANCE
-
-
Constructor Details
-
CDOLobStoreImpl
- Since:
- 4.26
-
CDOLobStoreImpl
-
CDOLobStoreImpl
- Since:
- 4.26
-
CDOLobStoreImpl
public CDOLobStoreImpl()
-
-
Method Details
-
getFolder
-
getDigestAlgorithm
- Since:
- 4.26
-
getTimeout
public long getTimeout()- Since:
- 4.8
-
setTimeout
public void setTimeout(long timeout) - Since:
- 4.8
-
getBinaryFile
- Specified by:
getBinaryFilein interfaceCDOLobStore
-
getBinary
- Specified by:
getBinaryin interfaceCDOLobStore- Throws:
IOException
-
putBinary
- Specified by:
putBinaryin interfaceCDOLobStore- Throws:
IOException
-
getCharacterFile
- Specified by:
getCharacterFilein interfaceCDOLobStore
-
getCharacter
- Specified by:
getCharacterin interfaceCDOLobStore- Throws:
IOException
-
putCharacter
- Specified by:
putCharacterin interfaceCDOLobStore- Throws:
IOException
-
toString
-
createDigest
-
getTempFile
-