Blesta
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • blesta
    • app
      • components
        • events
          • default
      • controllers
      • models
    • components
      • auth
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • exchange
        • rates
          • foxrate
          • google
            • finance
          • yahoo
            • finance
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
      • json
      • modules
      • net
        • http
        • net
          • amazon
            • s3
          • geo
            • ip
      • plugins
      • recaptcha
      • security
      • session
        • cart
      • settingscollection
      • upgrades
      • upload
      • vcard
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
  • com
    • tecnick
      • tcpdf
        • blesta
          • components
            • invoice
              • templates
                • quickbooks
                  • invoice
                • templates
                  • default
  • Crypt
    • AES
    • DES
    • Hash
    • Random
    • RC4
    • Rijndael
    • RSA
    • TerraDES
  • File
    • ANSI
    • ASN1
    • X509
  • Math
    • BigInteger
  • minPHP
    • components
      • input
      • record
    • helpers
      • color
      • data
        • structure
      • date
      • html
      • xml
    • lib
  • Net
    • SFTP
    • SSH1
    • SSH2
  • None
  • PHP
  • PHPMailer
  • Services
    • JSON
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • Swift_ByteStream_AbstractFilterableInputStream
  • Swift_ByteStream_ArrayByteStream
  • Swift_ByteStream_FileByteStream

Interfaces

  • Swift_FileStream
  • Swift_InputByteStream
  • Swift_OutputByteStream

Class Swift_ByteStream_FileByteStream

Allows reading and writing of bytes to and from a file.

Swift_ByteStream_AbstractFilterableInputStream implements Swift_InputByteStream, Swift_Filterable
Extended by Swift_ByteStream_FileByteStream implements Swift_FileStream
Package: Swift\ByteStream
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/ByteStream/FileByteStream.php

Methods summary

public
# __construct( string $path, string $writable = false )

Create a new FileByteStream for $path.

Create a new FileByteStream for $path.

Parameters

$path
string
$path
$writable
string
$writable if true
public string
# getPath( )

Get the complete path to the file.

Get the complete path to the file.

Returns

string

Implementation of

Swift_FileStream::getPath()
public string
# read( integer $length )

Reads $length bytes from the stream into a string and moves the pointer through the stream by $length. If less bytes exist than are requested the remaining bytes are given instead. If no bytes are remaining at all, boolean false is returned.

Reads $length bytes from the stream into a string and moves the pointer through the stream by $length. If less bytes exist than are requested the remaining bytes are given instead. If no bytes are remaining at all, boolean false is returned.

Parameters

$length
integer
$length

Returns

string

Throws

Swift_IoException

Implementation of

Swift_OutputByteStream::read()
public boolean
# setReadPointer( integer $byteOffset )

Move the internal read pointer to $byteOffset in the stream.

Move the internal read pointer to $byteOffset in the stream.

Parameters

$byteOffset
integer
$byteOffset

Returns

boolean

Throws

Swift_IoException

Implementation of

Swift_OutputByteStream::setReadPointer()
protected
# _commit( string $bytes )

Just write the bytes to the file

Just write the bytes to the file

Parameters

$bytes
string
$bytes
protected
# _flush( )

Not used

Not used

private
# _getReadHandle( )

Get the resource for reading

Get the resource for reading

private
# _getWriteHandle( )

Get the resource for writing

Get the resource for writing

private
# _resetReadHandle( )

Force a reload of the resource for reading

Force a reload of the resource for reading

private
# _getReadStreamSeekableStatus( )

Check if ReadOnly Stream is seekable

Check if ReadOnly Stream is seekable

private
# _seekReadStreamToPosition( mixed $offset )

Streams in a readOnly stream ensuring copy if needed

Streams in a readOnly stream ensuring copy if needed

private
# _copyReadStream( )

Copy a readOnly Stream to ensure seekability

Copy a readOnly Stream to ensure seekability

Methods inherited from Swift_ByteStream_AbstractFilterableInputStream

addFilter(), bind(), commit(), flushBuffers(), removeFilter(), unbind(), write()

Magic methods summary

Properties summary

private integer $_offset
#

The internal pointer offset

The internal pointer offset

private mixed $_path
#

The path to the file

The path to the file

private mixed $_mode
#

The mode this file is opened in for writing

The mode this file is opened in for writing

private mixed $_reader
#

A lazy-loaded resource handle for reading the file

A lazy-loaded resource handle for reading the file

private mixed $_writer
#

A lazy-loaded resource handle for writing the file

A lazy-loaded resource handle for writing the file

private boolean $_quotes
#

If magic_quotes_runtime is on, this will be true

If magic_quotes_runtime is on, this will be true

private mixed $_seekable
#

If stream is seekable true/false, or null if not known

If stream is seekable true/false, or null if not known

Properties inherited from Swift_ByteStream_AbstractFilterableInputStream

$_sequence

Blesta API documentation generated by ApiGen 2.8.0