Skip to content

Commit be0b6a2

Browse files
committed
Rename RandomAccessFileRASource to FileRASource
1 parent 28f5856 commit be0b6a2

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ abstract class RandomAccessSource {
3535
Implementations:
3636

3737
- `BytesRASource` for `Uint8List` data
38-
- `RandomAccessFileRASource` for `RandomAccessFile` data
38+
- `FileRASource` for `RandomAccessFile` data

lib/random_access_source.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ library;
33

44
export 'src/random_access_source.dart';
55
export 'src/bytes_ra_source.dart';
6-
export 'src/random_access_file_ra_source.dart';
6+
export 'src/file_ra_source.dart';
77
export 'src/random_access_binary_reader.dart';
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import 'dart:typed_data';
33

44
import '../random_access_source.dart';
55

6-
class RandomAccessFileRASource extends RandomAccessSource {
6+
class FileRASource extends RandomAccessSource {
77
final RandomAccessFile _file;
88

9-
RandomAccessFileRASource(this._file);
9+
FileRASource(this._file);
1010

11-
static Future<RandomAccessFileRASource> open(String path) async {
11+
static Future<FileRASource> open(String path) async {
1212
final file = await File(path).open();
13-
return RandomAccessFileRASource(file);
13+
return FileRASource(file);
1414
}
1515

1616
@override

test/raf_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Future<RandomAccessSource> _rafSource() async {
1313
await File(tmp).writeAsBytes([1, 2, 3, 4, 5]);
1414
_tmpFile = tmp;
1515
}
16-
return RandomAccessFileRASource.open(_tmpFile!);
16+
return FileRASource.open(_tmpFile!);
1717
}
1818

1919
void main() {

0 commit comments

Comments
 (0)