diff options
author | 2018-02-16 15:48:49 -0800 | |
---|---|---|
committer | 2018-02-16 15:50:13 -0800 | |
commit | d18d3e2f83f9d582858a3edab7a450c60044028c (patch) | |
tree | 16ff3c0dff1e87a60ddcafaea2917623d48ef096 /src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.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/XmlResourceValue.java')
-rw-r--r-- | src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java b/src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java index e8cab89c19..f24d6b271a 100644 --- a/src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java +++ b/src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java @@ -13,8 +13,12 @@ // limitations under the License. package com.google.devtools.build.android; +import com.google.devtools.build.android.xml.Namespaces; +import java.io.IOException; +import java.io.OutputStream; + /** An {@link XmlResourceValue} is extracted from xml files in the resource 'values' directory. */ -public interface XmlResourceValue extends Writeable { +public interface XmlResourceValue { /** * Each XmlValue is expected to write a valid representation in xml to the writer. * @@ -24,6 +28,9 @@ public interface XmlResourceValue extends Writeable { */ void write(FullyQualifiedName key, DataSource source, AndroidDataWritingVisitor mergedDataWriter); + /** Serializes the resource value to the OutputStream and returns the bytes written. */ + int serializeTo(int sourceId, Namespaces namespaces, OutputStream out) throws IOException; + /** * Combines these xml values together and returns a single value. * |