Removed writer's count of bytes written and renamed a method.

This commit is contained in:
akwizgran
2011-09-21 18:22:14 +01:00
parent 52f3b70c3f
commit b65d6631f1
19 changed files with 34 additions and 60 deletions

View File

@@ -13,7 +13,7 @@ public class AuthorId extends UniqueId {
}
public void writeTo(Writer w) throws IOException {
w.writeUserDefinedTag(Types.AUTHOR_ID);
w.writeUserDefinedId(Types.AUTHOR_ID);
w.writeBytes(id);
}

View File

@@ -16,7 +16,7 @@ public class BatchId extends UniqueId {
}
public void writeTo(Writer w) throws IOException {
w.writeUserDefinedTag(Types.BATCH_ID);
w.writeUserDefinedId(Types.BATCH_ID);
w.writeBytes(id);
}

View File

@@ -16,7 +16,7 @@ public class GroupId extends UniqueId {
}
public void writeTo(Writer w) throws IOException {
w.writeUserDefinedTag(Types.GROUP_ID);
w.writeUserDefinedId(Types.GROUP_ID);
w.writeBytes(id);
}

View File

@@ -13,7 +13,7 @@ public class MessageId extends UniqueId {
}
public void writeTo(Writer w) throws IOException {
w.writeUserDefinedTag(Types.MESSAGE_ID);
w.writeUserDefinedId(Types.MESSAGE_ID);
w.writeBytes(id);
}

View File

@@ -6,8 +6,6 @@ import java.util.Map;
public interface Writer {
long getBytesWritten();
void writeBoolean(boolean b) throws IOException;
void writeUint7(byte b) throws IOException;
@@ -33,5 +31,5 @@ public interface Writer {
void writeNull() throws IOException;
void writeUserDefinedTag(int tag) throws IOException;
void writeUserDefinedId(int tag) throws IOException;
}