|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.application.areca.metadata.AbstractMetadataAdapter
public abstract class AbstractMetadataAdapter
Abstract implementation for metada adapters
Field Summary | |
---|---|
protected static java.lang.String |
DATA_CHARSET
|
protected java.io.File |
file
File |
protected boolean |
isCompressed
Tells wether the content is compressed or not |
protected java.io.OutputStream |
outputStream
OS |
protected static java.lang.String |
VERSION
|
protected static java.lang.String |
VERSION_HEADER
|
protected java.io.Writer |
writer
Writer |
protected long |
written
Counts the element that have been written |
Constructor Summary | |
---|---|
AbstractMetadataAdapter()
|
Method Summary | |
---|---|
void |
close()
|
abstract AbstractMetaDataEntry |
decodeEntry(java.lang.String line)
|
java.io.File |
getFile()
|
protected java.io.InputStream |
getInputStream()
|
protected long |
getVersion()
|
protected java.lang.String |
getVersionHeader()
|
long |
getWritten()
|
protected void |
initOutputStream()
|
protected void |
initWriter()
|
boolean |
isCompressed()
|
protected java.lang.String |
resolveEncoding(long version)
|
void |
setCompressed(boolean isCompressed)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String DATA_CHARSET
protected static final java.lang.String VERSION_HEADER
protected static final java.lang.String VERSION
protected java.io.Writer writer
protected long written
protected java.io.OutputStream outputStream
protected boolean isCompressed
protected java.io.File file
Constructor Detail |
---|
public AbstractMetadataAdapter()
Method Detail |
---|
protected void initOutputStream() throws java.io.IOException
java.io.IOException
public java.io.File getFile()
protected void initWriter() throws java.io.IOException
java.io.IOException
protected java.lang.String getVersionHeader()
public void close() throws java.io.IOException
java.io.IOException
protected java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
protected long getVersion() throws java.io.IOException
java.io.IOException
public abstract AbstractMetaDataEntry decodeEntry(java.lang.String line)
protected java.lang.String resolveEncoding(long version) throws java.io.IOException
java.io.IOException
public boolean isCompressed()
public void setCompressed(boolean isCompressed)
public long getWritten()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |