/**
* This {@link BasicLibrary} will access a remote server to list the available
- * stories, and download the one you try to load to the local directory
+ * stories, and download the ones you try to load to the local directory
* specified in the configuration.
*
* @author niki
OutputType.CBZ);
}
+ @Override
+ public String getLibraryName() {
+ return host + ":" + port;
+ }
+
@Override
protected List<MetaData> getMetas(Progress pg) {
// TODO: progress
}
@Override
- protected int getNextId() {
+ public synchronized void delete(String luid) throws IOException {
throw new java.lang.InternalError(
"No write support allowed on remote Libraries");
}
@Override
- protected void doDelete(String luid) throws IOException {
+ public void setSourceCover(String source, String luid) {
throw new java.lang.InternalError(
"No write support allowed on remote Libraries");
}
+ // All the following methods are only used by Save and Delete in
+ // BasicLibrary:
+
@Override
- protected Story doSave(Story story, Progress pg) throws IOException {
- throw new java.lang.InternalError(
- "No write support allowed on remote Libraries");
+ protected int getNextId() {
+ throw new java.lang.InternalError("Should not have been called");
}
@Override
- public void setSourceCover(String source, String luid) {
- throw new java.lang.InternalError(
- "No write support allowed on remote Libraries");
+ protected void doDelete(String luid) throws IOException {
+ throw new java.lang.InternalError("Should not have been called");
+ }
+
+ @Override
+ protected Story doSave(Story story, Progress pg) throws IOException {
+ throw new java.lang.InternalError("Should not have been called");
}
}