org.modeshape.jcr.value.binary.infinispan
Class Metadata
java.lang.Object
org.modeshape.jcr.value.binary.infinispan.Metadata
- All Implemented Interfaces:
- Externalizable, Serializable
public final class Metadata
- extends Object
- implements Externalizable
- See Also:
- Serialized Form
Constructor Summary |
|
Metadata()
|
|
Metadata(long modificationTime,
long length,
int numberOfChunks)
|
protected |
Metadata(long modificationTime,
long length,
int numberOfChunks,
long unusedSince,
String mimeType,
int numberTextChunks)
|
protected |
Metadata(Metadata metadata)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Metadata
public Metadata()
Metadata
public Metadata(long modificationTime,
long length,
int numberOfChunks)
Metadata
protected Metadata(long modificationTime,
long length,
int numberOfChunks,
long unusedSince,
String mimeType,
int numberTextChunks)
Metadata
protected Metadata(Metadata metadata)
copy
public Metadata copy()
getLength
public long getLength()
getModificationTime
public long getModificationTime()
getMimeType
public String getMimeType()
withMimeType
public Metadata withMimeType(String mimeType)
getNumberTextChunks
public int getNumberTextChunks()
withNumberOfTextChunks
public Metadata withNumberOfTextChunks(int numberTextChunks)
getNumberChunks
public int getNumberChunks()
isUnused
public boolean isUnused()
markAsUnusedSince
public void markAsUnusedSince(long unusedSince)
markAsUsed
public void markAsUsed()
unusedSince
public long unusedSince()
- Returns:
- unused time in MS or 0 if still in use
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.