CDR
- the next registry file state after save(java.util.List)
} is calledpublic abstract class RegFile<CDR extends RegFile> extends Object
Modifier and Type | Method and Description |
---|---|
abstract RegAccessMode |
getAccessMode() |
File |
getFile() |
abstract String |
getName() |
abstract boolean |
isAppendable() |
CDR |
save(List<? extends RegistryUpdate> deltas)
Saves a number of updates to the registry file on disk.
|
CDR |
save(RegistryUpdate delta)
Saves a single update to the registry file on disk.
|
protected abstract CDR |
saveImpl(List<? extends RegistryUpdate> deltas)
The meat of the save work - subclass specific
|
protected List<FileInfoRecord> |
toRecords(Iterable<FullFileInfo> fileInfos) |
public RegFile(File file)
public final CDR save(List<? extends RegistryUpdate> deltas) throws IOException, CloverRegistryException
IllegalStateException
- if save has already been calledIOException
CloverRegistryException
public final CDR save(RegistryUpdate delta) throws IOException, CloverRegistryException
IllegalStateException
- if save has already been calledIOException
CloverRegistryException
protected abstract CDR saveImpl(List<? extends RegistryUpdate> deltas) throws IOException, CloverRegistryException
IOException
CloverRegistryException
public abstract String getName()
public File getFile()
protected List<FileInfoRecord> toRecords(Iterable<FullFileInfo> fileInfos)
public abstract RegAccessMode getAccessMode()
public abstract boolean isAppendable()
Copyright © 2023 OpenClover.org. All rights reserved.