1 /*******************************************************************************
2 
3         copyright:      Copyright (c) 2007 Kris Bell. All rights reserved
4 
5         license:        BSD style: $(LICENSE)
6 
7         version:        Initial release: Oct 2007
8 
9         author:         Kris
10 
11 *******************************************************************************/
12 
13 module tango.io.stream.Text;
14 
15 private import tango.io.stream.Lines;
16 
17 private import tango.io.stream.Format;
18 
19 private import tango.io.stream.Buffered;
20 
21 private import tango.io.model.IConduit;
22 
23 /*******************************************************************************
24 
25         Input is buffered.
26 
27 *******************************************************************************/
28 
29 class TextInput : Lines!(char)
30 {
31         /**********************************************************************
32 
33         **********************************************************************/
34 
35         this (InputStream input)
36         {
37                 super (input);
38         }
39 }
40 
41 /*******************************************************************************
42 
43         Output is buffered.
44 
45 *******************************************************************************/
46 
47 class TextOutput : FormatOutput!(char)
48 {
49         /**********************************************************************
50 
51                 Construct a FormatOutput instance, tying the provided stream
52                 to a layout formatter.
53 
54         **********************************************************************/
55 
56         this (OutputStream output)
57         {
58                 super (BufferedOutput.create(output));
59         }
60 }