Skip to content
Snippets Groups Projects
Commit 31ffe119 authored by Vojtech Moravec's avatar Vojtech Moravec
Browse files

Rename cache file classes

parent 21ab7bb2
No related branches found
No related tags found
No related merge requests found
package cz.it4i.qcmp.cache; package cz.it4i.qcmp.cache;
import cz.it4i.qcmp.fileformat.IQvcHeader;
import cz.it4i.qcmp.fileformat.QvcHeaderV1; import cz.it4i.qcmp.fileformat.QvcHeaderV1;
import java.io.DataInputStream; import java.io.DataInputStream;
import java.io.DataOutputStream; import java.io.DataOutputStream;
import java.io.IOException; import java.io.IOException;
// TODO(Moravec): Rename to IQvcFile
public interface ICacheFile { public interface ICacheFile {
void writeToStream(DataOutputStream outputStream) throws IOException; void writeToStream(DataOutputStream outputStream) throws IOException;
void readFromStream(DataInputStream inputStream) throws IOException; void readFromStream(DataInputStream inputStream, IQvcHeader header) throws IOException;
void readFromStream(DataInputStream inputStream, QvcHeaderV1 header) throws IOException; void readFromStream(DataInputStream inputStream, QvcHeaderV1 header) throws IOException;
QvcHeaderV1 getHeader(); IQvcHeader getHeader();
void report(StringBuilder builder); void report(StringBuilder builder);
......
...@@ -7,7 +7,7 @@ import java.io.DataInputStream; ...@@ -7,7 +7,7 @@ import java.io.DataInputStream;
import java.io.DataOutputStream; import java.io.DataOutputStream;
import java.io.IOException; import java.io.IOException;
public class SQCacheFile implements ICacheFile { public class SQCacheFile implements IQvcFile {
private QvcHeaderV1 header; private QvcHeaderV1 header;
private SQCodebook codebook; private SQCodebook codebook;
...@@ -74,9 +74,4 @@ public class SQCacheFile implements ICacheFile { ...@@ -74,9 +74,4 @@ public class SQCacheFile implements ICacheFile {
} }
} }
} }
@Override
public String klass() {
return "SQCacheFile";
}
} }
...@@ -7,7 +7,7 @@ import java.io.DataInputStream; ...@@ -7,7 +7,7 @@ import java.io.DataInputStream;
import java.io.DataOutputStream; import java.io.DataOutputStream;
import java.io.IOException; import java.io.IOException;
public class VQCacheFile implements ICacheFile { public class VQCacheFile implements IQvcFile {
private QvcHeaderV1 header; private QvcHeaderV1 header;
private VQCodebook codebook; private VQCodebook codebook;
...@@ -83,9 +83,4 @@ public class VQCacheFile implements ICacheFile { ...@@ -83,9 +83,4 @@ public class VQCacheFile implements ICacheFile {
builder.append("\n- - - - - - - - - - - - - - - - - - - - - - - - -\n"); builder.append("\n- - - - - - - - - - - - - - - - - - - - - - - - -\n");
} }
} }
@Override
public String klass() {
return "VQCacheFile";
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment