Hoa central
Read.php
Go to the documentation of this file.
1 <?php
2 
37 namespace Hoa\Xml;
38 
39 use Hoa\Stream;
40 
49 class Read extends Xml implements Stream\IStream\In
50 {
61  public function __construct(
62  Stream\IStream\In $stream,
63  $initializeNamespace = true,
64  $entityResolver = null
65  ) {
66  parent::__construct(
67  '\Hoa\Xml\Element\Read',
68  $stream,
69  $initializeNamespace,
70  $entityResolver
71  );
72 
73  return;
74  }
75 
81  public function eof()
82  {
83  return $this->getStream()->eof();
84  }
85 
93  public function read($length)
94  {
95  return $this->getStream()->read($length);
96  }
97 
104  public function readString($length)
105  {
106  return $this->getStream()->readString($length);
107  }
108 
114  public function readCharacter()
115  {
116  return $this->getStream()->readCharacter();
117  }
118 
124  public function readBoolean()
125  {
126  return $this->getStream()->readBoolean();
127  }
128 
135  public function readInteger($length = 1)
136  {
137  return $this->getStream()->readInteger($length);
138  }
139 
146  public function readFloat($length = 1)
147  {
148  return $this->getStream()->readFloat($length);
149  }
150 
157  public function readArray($argument = null)
158  {
159  return $this->getStream()->readArray($argument);
160  }
161 
167  public function readLine()
168  {
169  return $this->getStream()->readLine();
170  }
171 
178  public function readAll($offset = 0)
179  {
180  return $this->getStream()->readAll($context);
181  }
182 
189  public function scanf($format)
190  {
191  return $this->getStream()->scanf($format);
192  }
193 
199  public function readDOM()
200  {
201  return $this->getStream()->readDOM();
202  }
203 }
readString($length)
Definition: Read.php:104
readAll($offset=0)
Definition: Read.php:178
__construct(Stream\IStream\In $stream, $initializeNamespace=true, $entityResolver=null)
Definition: Read.php:61
readFloat($length=1)
Definition: Read.php:146
readInteger($length=1)
Definition: Read.php:135
scanf($format)
Definition: Read.php:189
readLine()
Definition: Read.php:167
readBoolean()
Definition: Read.php:124
read($length)
Definition: Read.php:93
readArray($argument=null)
Definition: Read.php:157
readCharacter()
Definition: Read.php:114