Klasse CDOBlob
CDOBlobs are immutable. Once created, their ID and size do not change.
The ID is a digest of the content of the blob, SHA-1 by default (see CDOLobStoreImpl.DEFAULT_DIGEST_ALGORITHM).
CDOBlobs can be created from an InputStream, a byte[], or a hex-encoded String.
On the client side, CDOBlobs are created with a reference to a CDOLobStore, which is used to store and retrieve
the blob's content. On the server side, CDOBlobs are created without a store reference and are always retrieved from
the repository's IStore.
The default CDOLobStore implementation is CDOLobStoreImpl.INSTANCE, which stores blobs in the local file system.
But on the client side, it's often more efficient to use a dedicated CDOLobStore instance that stores blobs in
a CDOSession-specific cache location. See CDOSession.Options.setLobCache(CDOLobStore) for details.
See also CDOSession.newBlob(InputStream) and CDOSession.newBlob(byte[]) for convenient ways to create CDOBlobs.
- Seit:
- 4.0
- Autor:
- Eike Stepper
-
Feldübersicht
Von Klasse geerbte Felder org.eclipse.emf.cdo.common.lob.CDOLob
DEFAULT_STORE -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCDOBlob(byte[] contents) CDOBlob(byte[] contents, CDOLobStore store) CDOBlob(InputStream contents) CDOBlob(InputStream contents, CDOLobStore store) CDOBlob(String contentsHexString, CDOLobStore store) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidcopyTo(OutputStream out) byte[]getBytes()protected CDOLobInfoput(InputStream contents) Von Klasse geerbte Methoden org.eclipse.emf.cdo.common.lob.CDOLob
getByteCount, getStoreVon Klasse geerbte Methoden org.eclipse.emf.cdo.common.lob.CDOLobInfo
equals, getID, getIDString, getSize, hashCode, toString
-
Konstruktordetails
-
CDOBlob
- Löst aus:
IOException
-
CDOBlob
- Löst aus:
IOException
-
CDOBlob
- Löst aus:
IOException- Seit:
- 4.27
-
CDOBlob
- Löst aus:
IOException- Seit:
- 4.13
-
CDOBlob
- Löst aus:
IOException- Seit:
- 4.27
-
CDOBlob
- Löst aus:
IOException- Seit:
- 4.13
-
-
Methodendetails
-
getStoreFile
- Angegeben von:
getStoreFilein KlasseCDOLob<InputStream>
-
getContents
- Angegeben von:
getContentsin KlasseCDOLob<InputStream>- Löst aus:
IOException
-
getBytes
- Löst aus:
IOException- Seit:
- 4.13
-
getString
- Angegeben von:
getStringin KlasseCDOLob<InputStream>- Löst aus:
IOException- Seit:
- 4.13
-
copyTo
- Löst aus:
IOException- Seit:
- 4.27
-
put
- Angegeben von:
putin KlasseCDOLob<InputStream>- Löst aus:
IOException
-