aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java
diff options
context:
space:
mode:
authorGravatar corysmith <corysmith@google.com>2018-02-16 15:48:49 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-02-16 15:50:13 -0800
commitd18d3e2f83f9d582858a3edab7a450c60044028c (patch)
tree16ff3c0dff1e87a60ddcafaea2917623d48ef096 /src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java
parentd7a56179ab35bf21ee6d77d87bb0096bef042175 (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.java9
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.
*