summaryrefslogtreecommitdiffstats
path: root/core/java/android/os/PooledStringWriter.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/java/android/os/PooledStringWriter.java')
-rw-r--r--core/java/android/os/PooledStringWriter.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/os/PooledStringWriter.java b/core/java/android/os/PooledStringWriter.java
index eac297d..ee592d9 100644
--- a/core/java/android/os/PooledStringWriter.java
+++ b/core/java/android/os/PooledStringWriter.java
@@ -67,6 +67,10 @@ public class PooledStringWriter {
}
}
+ public int getStringCount() {
+ return mPool.size();
+ }
+
public void finish() {
final int pos = mOut.dataPosition();
mOut.setDataPosition(mStart);