public final class Metadata extends Object implements Externalizable
Modifier | Constructor and Description |
---|---|
|
Metadata()
Public no-arg ctr, required by serialization
|
protected |
Metadata(long modificationTime,
long length,
int numberOfChunks,
int chunkSize) |
protected |
Metadata(long modificationTime,
long length,
int numberOfChunks,
long unusedSince,
String mimeType,
int numberTextChunks,
int chunkSize) |
Modifier and Type | Method and Description |
---|---|
protected int |
getChunkSize() |
protected long |
getLength() |
protected String |
getMimeType() |
protected int |
getNumberChunks() |
protected int |
getNumberTextChunks() |
protected boolean |
isUnused() |
protected void |
markAsUnusedSince(long unusedSince) |
protected void |
markAsUsed() |
void |
readExternal(ObjectInput in) |
protected long |
unusedSince() |
protected Metadata |
withMimeType(String mimeType) |
protected Metadata |
withNumberOfTextChunks(int numberTextChunks) |
void |
writeExternal(ObjectOutput out) |
public Metadata()
protected Metadata(long modificationTime, long length, int numberOfChunks, int chunkSize)
protected Metadata(long modificationTime, long length, int numberOfChunks, long unusedSince, String mimeType, int numberTextChunks, int chunkSize)
protected long getLength()
protected String getMimeType()
protected int getNumberTextChunks()
protected Metadata withNumberOfTextChunks(int numberTextChunks)
protected int getNumberChunks()
protected boolean isUnused()
protected void markAsUnusedSince(long unusedSince)
protected void markAsUsed()
protected int getChunkSize()
protected long unusedSince()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
IOException
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.