diff options
author | corysmith <corysmith@google.com> | 2018-02-16 15:48:49 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-02-16 15:50:13 -0800 |
commit | d18d3e2f83f9d582858a3edab7a450c60044028c (patch) | |
tree | 16ff3c0dff1e87a60ddcafaea2917623d48ef096 /src/tools/android/java/com/google/devtools/build/android/DataValue.java | |
parent | d7a56179ab35bf21ee6d77d87bb0096bef042175 (diff) |
Automated rollback of commit f672a31b8b19baab95373e4f2f6d110aa8b8f0fb.
*** Reason for rollback ***
Unclassified general breakages in tests. Rolling back for further investigation.
*** Original change description ***
Normalized the serialization proto to save space and allow greater versatility in storage.
RELNOTES: None
PiperOrigin-RevId: 186057879
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, 4 insertions, 3 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 2a2bc51826..de9574508b 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,8 +28,9 @@ public interface DataValue { */ DataSource source(); - /** Serializes the value to the entry visitor. */ - SerializeEntryVisitor serializeTo(SerializeEntryVisitor visitor) throws IOException; + /** Serializes to a supplied stream and returns the number of bytes written. */ + int serializeTo( + DataSourceTable sourceTable, OutputStream output) throws IOException; DataValue update(DataSource source); |