Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2008-10-06 17:24:02 +0000
committerslewis2008-10-06 17:24:02 +0000
commit94383a685810d2fefc9798f0555b423529705693 (patch)
tree24bfeb4017538d0cb36eded47524d3a6e62da7db
parent0e554bea9fe54c66f38323187b162d42e81e9d86 (diff)
downloadorg.eclipse.ecf-94383a685810d2fefc9798f0555b423529705693.tar.gz
org.eclipse.ecf-94383a685810d2fefc9798f0555b423529705693.tar.xz
org.eclipse.ecf-94383a685810d2fefc9798f0555b423529705693.zip
Change to method name in IDocumentChangeMessage
-rw-r--r--framework/bundles/org.eclipse.ecf.sync/src/org/eclipse/ecf/sync/doc/IDocumentChangeMessage.java2
-rw-r--r--framework/bundles/org.eclipse.ecf.sync/src/org/eclipse/ecf/sync/doc/messages/DocumentChangeMessage.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/framework/bundles/org.eclipse.ecf.sync/src/org/eclipse/ecf/sync/doc/IDocumentChangeMessage.java b/framework/bundles/org.eclipse.ecf.sync/src/org/eclipse/ecf/sync/doc/IDocumentChangeMessage.java
index d3d2d8cd1..16893c588 100644
--- a/framework/bundles/org.eclipse.ecf.sync/src/org/eclipse/ecf/sync/doc/IDocumentChangeMessage.java
+++ b/framework/bundles/org.eclipse.ecf.sync/src/org/eclipse/ecf/sync/doc/IDocumentChangeMessage.java
@@ -18,6 +18,6 @@ package org.eclipse.ecf.sync.doc;
*/
public interface IDocumentChangeMessage {
- public byte[] toByteArray() throws SerializationException;
+ public byte[] serialize() throws SerializationException;
}
diff --git a/framework/bundles/org.eclipse.ecf.sync/src/org/eclipse/ecf/sync/doc/messages/DocumentChangeMessage.java b/framework/bundles/org.eclipse.ecf.sync/src/org/eclipse/ecf/sync/doc/messages/DocumentChangeMessage.java
index ae75fa90c..ac345ed9a 100644
--- a/framework/bundles/org.eclipse.ecf.sync/src/org/eclipse/ecf/sync/doc/messages/DocumentChangeMessage.java
+++ b/framework/bundles/org.eclipse.ecf.sync/src/org/eclipse/ecf/sync/doc/messages/DocumentChangeMessage.java
@@ -91,16 +91,16 @@ public class DocumentChangeMessage implements IDocumentChange, IDocumentChangeMe
return buf.toString();
}
- private byte[] serialize() throws IOException {
+ private byte[] serializeLocal() throws IOException {
final ByteArrayOutputStream bos = new ByteArrayOutputStream();
final ObjectOutputStream oos = new ObjectOutputStream(bos);
oos.writeObject(this);
return bos.toByteArray();
}
- public byte[] toByteArray() throws SerializationException {
+ public byte[] serialize() throws SerializationException {
try {
- return serialize();
+ return serializeLocal();
} catch (final IOException e) {
throw new SerializationException("Exception serializing DocumentChangeMessage", e);
}

Back to the top