org.modeshape.jcr.value.binary.infinispan
Class Metadata
java.lang.Object
org.modeshape.jcr.value.binary.infinispan.Metadata
- All Implemented Interfaces:
- Externalizable, Serializable
public class Metadata
- extends Object
- implements Externalizable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
length
protected long length
numberChunks
protected int numberChunks
modificationTime
protected long modificationTime
unusedSince
protected long unusedSince
mimeType
protected String mimeType
numberTextChunks
protected int numberTextChunks
Metadata
public Metadata()
Metadata
public Metadata(Metadata metadata)
copy
public Metadata copy()
getLength
public long getLength()
setLength
public void setLength(long length)
getModificationTime
public long getModificationTime()
setModificationTime
public void setModificationTime(long modificationTime)
getMimeType
public String getMimeType()
setMimeType
public void setMimeType(String mimeType)
getNumberTextChunks
public int getNumberTextChunks()
setNumberTextChunks
public void setNumberTextChunks(int numberTextChunks)
getNumberChunks
public int getNumberChunks()
setNumberChunks
public void setNumberChunks(int numberChunks)
isUnused
public boolean isUnused()
unusedSince
public long unusedSince()
- Returns:
- unused time in MS or 0 if still in use
setUnused
public void setUnused()
setUsed
public void setUsed()
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.