Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • Swift_CharacterStream_ArrayCharacterStream
  • Swift_CharacterStream_NgCharacterStream

Interfaces

  • Swift_CharacterStream
  • Overview
  • Package
  • Class
  • Todo
  • Download

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 classes/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
for loading validators
$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

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

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
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

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

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

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

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

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( $fp, $len )
private static
# _initializeMaps( )
Properties summary
private static $_charMap

A map of byte values and their respective characters

A map of byte values and their respective characters

#
private static $_byteMap

A map of characters and their derivative byte values

A map of characters and their derivative byte values

#
private $_charReader

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

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

#
private $_charReaderFactory

A factory for creatiing CharacterReader instances

A factory for creatiing CharacterReader instances

#
private $_charset

The character set this stream is using

The character set this stream is using

#
private array $_array

Array of characters

Array of characters

# array()
private array $_array_size

Size of the array of character

Size of the array of character

# array()
private integer $_offset

The current character offset in the stream

The current character offset in the stream

# 0
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen