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 // Interface for decoders decoding binary data into string data. The | 5 // Interface for decoders decoding binary data into string data. The |
8 // decoder keeps track of line breaks during decoding. | 6 // decoder keeps track of line breaks during decoding. |
9 abstract class _StringDecoder { | 7 abstract class _StringDecoder { |
10 // Add more binary data to be decoded. The ownership of the buffer | 8 // Add more binary data to be decoded. The ownership of the buffer |
11 // is transfered to the decoder and the caller most not modify it any more. | 9 // is transfered to the decoder and the caller most not modify it any more. |
12 int write(List<int> buffer); | 10 int write(List<int> buffer); |
13 | 11 |
14 // Returns whether any decoded data is available. | 12 // Returns whether any decoded data is available. |
15 bool get isEmpty; | 13 bool get isEmpty; |
16 | 14 |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 bool _inputClosed = false; // Is the underlying input stream closed? | 545 bool _inputClosed = false; // Is the underlying input stream closed? |
548 bool _closed = false; // Is this stream closed. | 546 bool _closed = false; // Is this stream closed. |
549 bool _eof = false; // Has all data been read from the decoder? | 547 bool _eof = false; // Has all data been read from the decoder? |
550 Timer _scheduledDataCallback; | 548 Timer _scheduledDataCallback; |
551 Timer _scheduledLineCallback; | 549 Timer _scheduledLineCallback; |
552 Timer _scheduledCloseCallback; | 550 Timer _scheduledCloseCallback; |
553 Function _clientDataHandler; | 551 Function _clientDataHandler; |
554 Function _clientLineHandler; | 552 Function _clientLineHandler; |
555 Function _clientCloseHandler; | 553 Function _clientCloseHandler; |
556 } | 554 } |
OLD | NEW |