Constructor and Description |
---|
NXReporter(File location) |
Modifier and Type | Method and Description |
---|---|
String |
getHeader()
Reads the header.
|
String |
getLastEntry()
Reads the last entry.
|
File |
getLocation() |
int |
getNumberOfDocuments()
Retrieves the number of entries.
|
long |
getTotalSize()
Computes the sum of the blob size.
|
boolean |
hasHeader() |
void |
setLocation(File location) |
void |
writeEntry(String documentId,
int blobsSize)
Writes an entry at the end of the file.
|
void |
writeHeader(String documentaryScope,
boolean resume)
Writes the header at the begin of the file.
|
void |
writeHeaderNoSync(String documentaryScope,
boolean resume) |
public NXReporter(File location) throws ClientException
ClientException
public String getHeader() throws ClientException
Reporter
getHeader
in interface Reporter
ClientException
public String getLastEntry() throws ClientException
Reporter
getLastEntry
in interface Reporter
ClientException
public int getNumberOfDocuments() throws ClientException
Reporter
getNumberOfDocuments
in interface Reporter
ClientException
public long getTotalSize() throws ClientException
Reporter
getTotalSize
in interface Reporter
ClientException
public boolean hasHeader() throws IOException
IOException
public void writeEntry(String documentId, int blobsSize) throws ClientException
Reporter
writeEntry
in interface Reporter
ClientException
public void writeHeader(String documentaryScope, boolean resume) throws ClientException
Reporter
writeHeader
in interface Reporter
ClientException
public void writeHeaderNoSync(String documentaryScope, boolean resume) throws ClientException
ClientException
public void setLocation(File location) throws IOException
IOException
public File getLocation()
Copyright © 2011 Nuxeo SA. All Rights Reserved.