# system/io/FileInputStream.php

## \FileInputStream
jump to top

Package: phing\system\io

Input stream subclass for file streams.

Parent(s)
  \InputStream

### Properties

`\PhingFile $file= ''`

The associated file.

Details

Type
  \PhingFile

### Methods

`__construct( \PhingFile | string $file, boolean $append = false ) : void`

Construct a new FileInputStream.

Parameters

Name | Type | Description
--- | --- | ---
$file | \PhingFile | string | Path to the file
$append | boolean | Whether to append (ignored)

Throws

Exception | Description
--- | ---
\Exception | - if invalid argument specified.
\IOException | - if unable to open file.

`__toString( ) : string`

Returns a string representation of the attached file.

Returns

Type | Description
--- | ---
string |

`close( ) : void`

`eof( ) : void`

`mark( ) : void`

`markSupported( ) : boolean`

Mark is supported by FileInputStream.

Returns

Type | Description
--- | ---
boolean | TRUE

`read( ) : void`

`readInto( ) : void`

`reset( ) : void`

`skip( ) : void`

Documentation was generated by DocBlox 0.17.1.