diff options
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, 7 insertions, 0 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 ded0ce5819..f30916f1f6 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,6 +13,8 @@ // limitations under the License. package com.google.devtools.build.android; +import java.io.IOException; +import java.io.OutputStream; import java.nio.file.Path; /** @@ -26,4 +28,9 @@ public interface DataValue { * Provides the Path to the file from which the DataValue was derived. */ Path source(); + + /** + * Serializes to a supplied stream and returns the number of bytes written. + */ + int serializeTo(DataKey key, OutputStream output) throws IOException; } |