| 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 |
| 5 /** | 7 /** |
| 6 * Default implementation of [ListInputStream]. | 8 * Default implementation of [ListInputStream]. |
| 7 */ | 9 */ |
| 8 class _ListInputStream extends _BaseDataInputStream implements ListInputStream { | 10 class _ListInputStream extends _BaseDataInputStream implements ListInputStream { |
| 9 _ListInputStream() : _bufferList = new _BufferList(); | 11 _ListInputStream() : _bufferList = new _BufferList(); |
| 10 | 12 |
| 11 void write(List<int> data) { | 13 void write(List<int> data) { |
| 12 if (_streamMarkedClosed) { | 14 if (_streamMarkedClosed) { |
| 13 throw new StreamException.streamClosed(); | 15 throw new StreamException.streamClosed(); |
| 14 } | 16 } |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 _BufferList _bufferList; | 152 _BufferList _bufferList; |
| 151 bool _streamMarkedClosed = false; | 153 bool _streamMarkedClosed = false; |
| 152 bool _closeCallbackCalled = false; | 154 bool _closeCallbackCalled = false; |
| 153 Timer _scheduledDataCallback; | 155 Timer _scheduledDataCallback; |
| 154 Timer _scheduledNoPendingWriteCallback; | 156 Timer _scheduledNoPendingWriteCallback; |
| 155 Timer _scheduledCloseCallback; | 157 Timer _scheduledCloseCallback; |
| 156 Function _clientDataHandler; | 158 Function _clientDataHandler; |
| 157 Function _clientNoPendingWriteHandler; | 159 Function _clientNoPendingWriteHandler; |
| 158 Function _clientCloseHandler; | 160 Function _clientCloseHandler; |
| 159 } | 161 } |
| OLD | NEW |