Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Unified Diff: sdk/lib/io/list_stream.dart

Issue 12316036: Merge IO v2 branch to bleeding edge (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased to r18818 Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/io/iolib_sources.gypi ('k') | sdk/lib/io/list_stream_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/list_stream.dart
diff --git a/sdk/lib/io/list_stream.dart b/sdk/lib/io/list_stream.dart
deleted file mode 100644
index a56476d10dbfc9ee6c154cb4d5949fb79ef9207f..0000000000000000000000000000000000000000
--- a/sdk/lib/io/list_stream.dart
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-part of dart.io;
-
-/**
- * [ListInputStream] makes it possible to use the [InputStream]
- * interface to stream over data that is received in chunks as lists
- * of integers.
- *
- * When a new list of integers is received it can be written to the
- * [ListInputStream] using the [write] method. The [markEndOfStream]
- * method must be called when the last data has been written to the
- * [ListInputStream].
- */
-abstract class ListInputStream implements InputStream {
- /**
- * Create an empty [ListInputStream] to which data can be written
- * using the [write] method.
- */
- factory ListInputStream() => new _ListInputStream();
-
- /**
- * Write more data to be streamed over to the [ListInputStream].
- */
- void write(List<int> data);
-
- /**
- * Notify the [ListInputStream] that no more data will be written to
- * it.
- */
- void markEndOfStream();
-}
-
-
-/**
- * [ListOutputStream] makes it possible to use the [OutputStream]
- * interface to write data to a [List] of integers.
- */
-abstract class ListOutputStream implements OutputStream {
- /**
- * Create a [ListOutputStream].
- */
- factory ListOutputStream() => new _ListOutputStream();
-
- /**
- * Reads all available data from the stream. If no data is available `null`
- * will be returned.
- */
- List<int> read();
-
- /**
- * Sets the handler that gets called when data is available.
- */
- void set onData(void callback());
-}
« no previous file with comments | « sdk/lib/io/iolib_sources.gypi ('k') | sdk/lib/io/list_stream_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698