Commit cb477ff7 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

New serialization util methods.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8344 b35dd754-fafc-0310-a699-88a17e54d16e
parent 6b2a9422
...@@ -10,10 +10,7 @@ ...@@ -10,10 +10,7 @@
*/ */
package org.jivesoftware.util.cache; package org.jivesoftware.util.cache;
import java.io.DataInput; import java.io.*;
import java.io.DataOutput;
import java.io.Externalizable;
import java.io.IOException;
import java.util.*; import java.util.*;
/** /**
...@@ -150,6 +147,15 @@ public class DummyExternalizableUtil implements ExternalizableUtilStrategy { ...@@ -150,6 +147,15 @@ public class DummyExternalizableUtil implements ExternalizableUtilStrategy {
return new byte[0]; return new byte[0];
} }
public void writeSerializable(DataOutput out, Serializable value) throws IOException {
// Do nothing
}
public Serializable readSerializable(DataInput in) throws IOException {
// Do nothing
return null;
}
public void writeSafeUTF(DataOutput out, String value) { public void writeSafeUTF(DataOutput out, String value) {
// Do nothing // Do nothing
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment