OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of dart_io; | |
6 | |
7 /** | 5 /** |
8 * Default implementation of [ListInputStream]. | 6 * Default implementation of [ListInputStream]. |
9 */ | 7 */ |
10 class _ListInputStream extends _BaseDataInputStream implements ListInputStream { | 8 class _ListInputStream extends _BaseDataInputStream implements ListInputStream { |
11 _ListInputStream() : _bufferList = new _BufferList(); | 9 _ListInputStream() : _bufferList = new _BufferList(); |
12 | 10 |
13 void write(List<int> data) { | 11 void write(List<int> data) { |
14 if (_streamMarkedClosed) { | 12 if (_streamMarkedClosed) { |
15 throw new StreamException.streamClosed(); | 13 throw new StreamException.streamClosed(); |
16 } | 14 } |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 _BufferList _bufferList; | 150 _BufferList _bufferList; |
153 bool _streamMarkedClosed = false; | 151 bool _streamMarkedClosed = false; |
154 bool _closeCallbackCalled = false; | 152 bool _closeCallbackCalled = false; |
155 Timer _scheduledDataCallback; | 153 Timer _scheduledDataCallback; |
156 Timer _scheduledNoPendingWriteCallback; | 154 Timer _scheduledNoPendingWriteCallback; |
157 Timer _scheduledCloseCallback; | 155 Timer _scheduledCloseCallback; |
158 Function _clientDataHandler; | 156 Function _clientDataHandler; |
159 Function _clientNoPendingWriteHandler; | 157 Function _clientNoPendingWriteHandler; |
160 Function _clientCloseHandler; | 158 Function _clientCloseHandler; |
161 } | 159 } |
OLD | NEW |