diff options
author | corysmith <corysmith@google.com> | 2018-02-16 13:14:29 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-02-16 13:18:21 -0800 |
commit | f672a31b8b19baab95373e4f2f6d110aa8b8f0fb (patch) | |
tree | 58cef0309a67e62e3fe0ef024916d9d5c53bae8c /src/tools/android/java/com/google/devtools/build/android/DataValue.java | |
parent | 950bcf79c47484832bb4c84fbb23f6b56800e0b3 (diff) |
Normalized the serialization proto to save space and allow greater versatility in storage.
RELNOTES: None
PiperOrigin-RevId: 186036607
Diffstat (limited to 'src/tools/android/java/com/google/devtools/build/android/DataValue.java')
-rw-r--r-- | src/tools/android/java/com/google/devtools/build/android/DataValue.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/tools/android/java/com/google/devtools/build/android/DataValue.java b/src/tools/android/java/com/google/devtools/build/android/DataValue.java index de9574508b..2a2bc51826 100644 --- a/src/tools/android/java/com/google/devtools/build/android/DataValue.java +++ b/src/tools/android/java/com/google/devtools/build/android/DataValue.java @@ -13,8 +13,8 @@ // limitations under the License. package com.google.devtools.build.android; +import com.google.devtools.build.android.AndroidDataSerializer.SerializeEntryVisitor; import java.io.IOException; -import java.io.OutputStream; /** * Represents the value associated with DataKey interface for resource and asset values. @@ -28,9 +28,8 @@ public interface DataValue { */ DataSource source(); - /** Serializes to a supplied stream and returns the number of bytes written. */ - int serializeTo( - DataSourceTable sourceTable, OutputStream output) throws IOException; + /** Serializes the value to the entry visitor. */ + SerializeEntryVisitor serializeTo(SerializeEntryVisitor visitor) throws IOException; DataValue update(DataSource source); |