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

Side by Side Diff: sdk/lib/io/stdio.dart

Issue 13647019: Remove typo templated type. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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; 5 part of dart.io;
6 6
7 const int _STDIO_HANDLE_TYPE_TERMINAL = 0; 7 const int _STDIO_HANDLE_TYPE_TERMINAL = 0;
8 const int _STDIO_HANDLE_TYPE_PIPE = 1; 8 const int _STDIO_HANDLE_TYPE_PIPE = 1;
9 const int _STDIO_HANDLE_TYPE_FILE = 2; 9 const int _STDIO_HANDLE_TYPE_FILE = 2;
10 const int _STDIO_HANDLE_TYPE_SOCKET = 3; 10 const int _STDIO_HANDLE_TYPE_SOCKET = 3;
(...skipping 23 matching lines...) Expand all
34 34
35 Encoding get encoding => _ioSink.encoding; 35 Encoding get encoding => _ioSink.encoding;
36 void set encoding(Encoding encoding) { 36 void set encoding(Encoding encoding) {
37 _ioSink.encoding = encoding; 37 _ioSink.encoding = encoding;
38 } 38 }
39 void write(object) => _ioSink.write(object); 39 void write(object) => _ioSink.write(object);
40 void writeln([object = "" ]) => _ioSink.writeln(object); 40 void writeln([object = "" ]) => _ioSink.writeln(object);
41 void writeAll(objects, [sep = ""]) => _ioSink.writeAll(objects, sep); 41 void writeAll(objects, [sep = ""]) => _ioSink.writeAll(objects, sep);
42 void writeBytes(List<int> data) => _ioSink.writeBytes(data); 42 void writeBytes(List<int> data) => _ioSink.writeBytes(data);
43 void writeCharCode(int charCode) => _ioSink.writeCharCode(charCode); 43 void writeCharCode(int charCode) => _ioSink.writeCharCode(charCode);
44 Future<T> consume(Stream<List<int>> stream) => _ioSink.consume(stream); 44 Future consume(Stream<List<int>> stream) => _ioSink.consume(stream);
45 Future<T> addStream(Stream<List<int>> stream) => _ioSink.addStream(stream); 45 Future addStream(Stream<List<int>> stream) => _ioSink.addStream(stream);
46 Future<T> writeStream(Stream<List<int>> stream) 46 Future writeStream(Stream<List<int>> stream)
47 => _ioSink.writeStream(stream); 47 => _ioSink.writeStream(stream);
48 Future close() => _ioSink.close(); 48 Future close() => _ioSink.close();
49 Future<T> get done => _ioSink.done; 49 Future get done => _ioSink.done;
50 } 50 }
51 51
52 class StdioType { 52 class StdioType {
53 static const StdioType TERMINAL = const StdioType._("terminal"); 53 static const StdioType TERMINAL = const StdioType._("terminal");
54 static const StdioType PIPE = const StdioType._("pipe"); 54 static const StdioType PIPE = const StdioType._("pipe");
55 static const StdioType FILE = const StdioType._("file"); 55 static const StdioType FILE = const StdioType._("file");
56 static const StdioType OTHER = const StdioType._("other"); 56 static const StdioType OTHER = const StdioType._("other");
57 final String name; 57 final String name;
58 const StdioType._(String this.name); 58 const StdioType._(String this.name);
59 String toString() => "StdioType: $name"; 59 String toString() => "StdioType: $name";
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 } 116 }
117 return StdioType.OTHER; 117 return StdioType.OTHER;
118 } 118 }
119 119
120 120
121 class _StdIOUtils { 121 class _StdIOUtils {
122 external static IOSink _getStdioOutputStream(int fd); 122 external static IOSink _getStdioOutputStream(int fd);
123 external static Stream<List<int>> _getStdioInputStream(); 123 external static Stream<List<int>> _getStdioInputStream();
124 external static int _socketType(nativeSocket); 124 external static int _socketType(nativeSocket);
125 } 125 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698