summaryrefslogtreecommitdiff
path: root/awt/javax/imageio/stream/MemoryCacheImageOutputStream.java
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:43 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:43 -0800
commitf013e1afd1e68af5e3b868c26a653bbfb39538f8 (patch)
tree7ad6c8fd9c7b55f4b4017171dec1cb760bbd26bf /awt/javax/imageio/stream/MemoryCacheImageOutputStream.java
parente70cfafe580c6f2994c4827cd8a534aabf3eb05c (diff)
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'awt/javax/imageio/stream/MemoryCacheImageOutputStream.java')
-rw-r--r--awt/javax/imageio/stream/MemoryCacheImageOutputStream.java29
1 files changed, 17 insertions, 12 deletions
diff --git a/awt/javax/imageio/stream/MemoryCacheImageOutputStream.java b/awt/javax/imageio/stream/MemoryCacheImageOutputStream.java
index 96ded433ae13..1df40a34227f 100644
--- a/awt/javax/imageio/stream/MemoryCacheImageOutputStream.java
+++ b/awt/javax/imageio/stream/MemoryCacheImageOutputStream.java
@@ -15,7 +15,6 @@
* limitations under the License.
*/
-
package javax.imageio.stream;
import org.apache.harmony.x.imageio.stream.RandomAccessMemoryCache;
@@ -23,24 +22,30 @@ import org.apache.harmony.x.imageio.stream.RandomAccessMemoryCache;
import java.io.OutputStream;
import java.io.IOException;
-
/**
- * The MemoryCacheImageOutputStream class implements ImageOutputStream
- * using a memory buffer for caching the data.
+ * The MemoryCacheImageOutputStream class implements ImageOutputStream using a
+ * memory buffer for caching the data.
+ *
+ * @since Android 1.0
*/
public class MemoryCacheImageOutputStream extends ImageOutputStreamImpl {
-
- /** The os. */
+
+ /**
+ * The os.
+ */
OutputStream os;
-
- /** The ramc. */
+
+ /**
+ * The ramc.
+ */
RandomAccessMemoryCache ramc = new RandomAccessMemoryCache();
/**
- * Instantiates a new MemoryCacheImageOutputStream
- * which writes to the specified OutputStream.
+ * Instantiates a new MemoryCacheImageOutputStream which writes to the
+ * specified OutputStream.
*
- * @param stream the OutputStream.
+ * @param stream
+ * the OutputStream.
*/
public MemoryCacheImageOutputStream(OutputStream stream) {
if (stream == null) {
@@ -125,6 +130,6 @@ public class MemoryCacheImageOutputStream extends ImageOutputStreamImpl {
ramc.getData(os, nBytes, flushedPosition);
ramc.freeBefore(newFlushedPosition);
- os.flush();
+ os.flush();
}
}