OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
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. | |
4 | |
5 // WARNING: Do not edit - generated code. | |
6 | |
7 class FileWriterWrappingImplementation extends DOMWrapperBase implements FileWri
ter { | |
8 FileWriterWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9 | |
10 FileError get error() { return LevelDom.wrapFileError(_ptr.error); } | |
11 | |
12 int get length() { return _ptr.length; } | |
13 | |
14 int get position() { return _ptr.position; } | |
15 | |
16 int get readyState() { return _ptr.readyState; } | |
17 | |
18 void abort() { | |
19 _ptr.abort(); | |
20 return; | |
21 } | |
22 | |
23 void seek(int position) { | |
24 _ptr.seek(position); | |
25 return; | |
26 } | |
27 | |
28 void truncate(int size) { | |
29 _ptr.truncate(size); | |
30 return; | |
31 } | |
32 | |
33 void write(Blob data) { | |
34 _ptr.write(LevelDom.unwrap(data)); | |
35 return; | |
36 } | |
37 } | |
OLD | NEW |