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_CharacterStream_ArrayCharacterStream
  • Swift_CharacterStream_NgCharacterStream

Interfaces

  • Swift_CharacterStream

Class Swift_CharacterStream_ArrayCharacterStream

A CharacterStream implementation which stores characters in an internal array.

Swift_CharacterStream_ArrayCharacterStream implements Swift_CharacterStream
Package: Swift\CharacterStream
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/CharacterStream/ArrayCharacterStream.php

Methods summary

public
# __construct( Swift_CharacterReaderFactory $factory, string $charset )

Create a new CharacterStream with the given $chars, if set.

Create a new CharacterStream with the given $chars, if set.

Parameters

$factory
Swift_CharacterReaderFactory
$factory for loading validators
$charset
string
$charset used in the stream
public
# setCharacterSet( string $charset )

Set the character set used in this CharacterStream.

Set the character set used in this CharacterStream.

Parameters

$charset
string
$charset

Implementation of

Swift_CharacterStream::setCharacterSet()
public
# setCharacterReaderFactory( Swift_CharacterReaderFactory $factory )

Set the CharacterReaderFactory for multi charset support.

Set the CharacterReaderFactory for multi charset support.

Parameters

$factory
Swift_CharacterReaderFactory
$factory

Implementation of

Swift_CharacterStream::setCharacterReaderFactory()
public
# importByteStream( Swift_OutputByteStream $os )

Overwrite this character stream using the byte sequence in the byte stream.

Overwrite this character stream using the byte sequence in the byte stream.

Parameters

$os
Swift_OutputByteStream
$os output stream to read from

Implementation of

Swift_CharacterStream::importByteStream()
public
# importString( string $string )

Import a string a bytes into this CharacterStream, overwriting any existing data in the stream.

Import a string a bytes into this CharacterStream, overwriting any existing data in the stream.

Parameters

$string
string
$string

Implementation of

Swift_CharacterStream::importString()
public string
# read( integer $length )

Read $length characters from the stream and move the internal pointer $length further into the stream.

Read $length characters from the stream and move the internal pointer $length further into the stream.

Parameters

$length
integer
$length

Returns

string

Implementation of

Swift_CharacterStream::read()
public int[]
# readBytes( integer $length )

Read $length characters from the stream and return a 1-dimensional array containing there octet values.

Read $length characters from the stream and return a 1-dimensional array containing there octet values.

Parameters

$length
integer
$length

Returns

int[]

Implementation of

Swift_CharacterStream::readBytes()
public
# write( string $chars )

Write $chars to the end of the stream.

Write $chars to the end of the stream.

Parameters

$chars
string
$chars

Implementation of

Swift_CharacterStream::write()
public
# setPointer( integer $charOffset )

Move the internal pointer to $charOffset in the stream.

Move the internal pointer to $charOffset in the stream.

Parameters

$charOffset
integer
$charOffset

Implementation of

Swift_CharacterStream::setPointer()
public
# flushContents( )

Empty the stream and reset the internal pointer.

Empty the stream and reset the internal pointer.

Implementation of

Swift_CharacterStream::flushContents()
private
# _reloadBuffer( mixed $fp, mixed $len )
private static
# _initializeMaps( )

Magic methods summary

Properties summary

private static mixed $_charMap
#

A map of byte values and their respective characters

A map of byte values and their respective characters

private static mixed $_byteMap
#

A map of characters and their derivative byte values

A map of characters and their derivative byte values

private mixed $_charReader
#

The char reader (lazy-loaded) for the current charset

The char reader (lazy-loaded) for the current charset

private mixed $_charReaderFactory
#

A factory for creatiing CharacterReader instances

A factory for creatiing CharacterReader instances

private mixed $_charset
#

The character set this stream is using

The character set this stream is using

private array $_array
#

Array of characters

Array of characters

private array $_array_size
#

Size of the array of character

Size of the array of character

private integer $_offset
#

The current character offset in the stream

The current character offset in the stream

Blesta API documentation generated by ApiGen 2.8.0