1
1
package org .perl6 .nqp .sixmodel .reprs ;
2
2
3
- import java .io .BufferedReader ;
4
- import java .io .InputStream ;
5
- import java .io .InputStreamReader ;
6
- import java .io .OutputStream ;
7
- import java .io .OutputStreamWriter ;
8
-
9
- import jline .ConsoleReader ;
10
-
11
3
import java .nio .file .DirectoryStream ;
12
4
import java .nio .file .Path ;
13
-
14
5
import java .util .Iterator ;
15
6
16
7
import org .perl6 .nqp .sixmodel .SixModelObject ;
@@ -19,34 +10,7 @@ public class IOHandleInstance extends SixModelObject {
19
10
/* Object that can perform I/O operations; will be checked for its
20
11
* capabilities by interface by ops and then invoked. */
21
12
public Object handle ;
22
-
23
- /* The input stream; if null, we can't read from this. */
24
- public InputStream is ;
25
-
26
- /* EOF gets marked by read operations */
27
- public boolean eof ;
28
13
29
- /* The output stream; if null, we can't write to this. */
30
- public OutputStream os ;
31
-
32
- /* The (Java) encoding name to use. */
33
- public String encoding = "UTF-8" ;
34
-
35
- /* These wrap the above streams and knows about encodings. If they
36
- * are still null, the encoding can still be set.
37
- */
38
- public InputStreamReader isr ;
39
- public OutputStreamWriter osw ;
40
-
41
- /*
42
- * This further wraps the input stream reader for the case of doing
43
- * line-based I/O.
44
- */
45
- public BufferedReader br ;
46
-
47
- /* This wraps the input stream for interactive readline */
48
- public ConsoleReader cr ;
49
-
50
14
/* This wraps directories that were opened for lazy file listings */
51
15
public DirectoryStream <Path > dirstrm ;
52
16
0 commit comments