diff options
author | Daniel Martin <daniel.martin@crowdstrike.com> | 2014-11-25 12:58:34 -0500 |
---|---|---|
committer | Daniel Martin <daniel.martin@crowdstrike.com> | 2014-11-25 13:00:03 -0500 |
commit | 5ff8dc8e005f5312af98655786c1c8438a617efb (patch) | |
tree | 4af7d4dfc83d1725c124cb45eb07b35bd39df584 /java/src/main/java/com/google/protobuf/ByteString.java | |
parent | 99aa0f9e8f1a88def7bdebf1385678559cda0707 (diff) | |
download | protobuf-5ff8dc8e005f5312af98655786c1c8438a617efb.tar.gz protobuf-5ff8dc8e005f5312af98655786c1c8438a617efb.tar.bz2 protobuf-5ff8dc8e005f5312af98655786c1c8438a617efb.zip |
Make ByteStrings serializable with java serialization.
Diffstat (limited to 'java/src/main/java/com/google/protobuf/ByteString.java')
-rw-r--r-- | java/src/main/java/com/google/protobuf/ByteString.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/main/java/com/google/protobuf/ByteString.java b/java/src/main/java/com/google/protobuf/ByteString.java index 7da56127..bd9c2b55 100644 --- a/java/src/main/java/com/google/protobuf/ByteString.java +++ b/java/src/main/java/com/google/protobuf/ByteString.java @@ -34,6 +34,7 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; +import java.io.Serializable; import java.io.UnsupportedEncodingException; import java.nio.ByteBuffer; import java.util.ArrayList; @@ -57,7 +58,7 @@ import java.util.NoSuchElementException; * @author carlanton@google.com Carl Haverl * @author martinrb@google.com Martin Buchholz */ -public abstract class ByteString implements Iterable<Byte> { +public abstract class ByteString implements Iterable<Byte>, Serializable { /** * When two strings to be concatenated have a combined length shorter than |