eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'XML::StreamWrapper':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: StreamWrapper (in XML)


Inheritance:

   Object
   |
   +--Link
      |
      +--XML::StreamWrapper

Package:
stx:goodies/xml/vw
Category:
XML-VW-Parsing
Version:
rev: 1.32 date: 2019/07/27 12:59:53
user: stefan
file: StreamWrapper.st directory: goodies/xml/vw
module: stx stc-classLibrary: vw

Description:


This class is used by the XMLParser to wrap both internal and external streams with proper encoding before handing them to the parser for processing

Instance Variables:
	stream                  <EncodedStream>  stream being wrapped
	isInternal              <Boolean>  true if the stream is internal and hencer doesn't need careful line-end treatment
	protocol                        <String>  name of stream type, 'internal' or 'file'
	name                    <String | nil>  the name of the stream, if it is named
	usedAsExternal  <Boolean>  flag used to override protocol and say how stream is being used?
	entity                  <Entity | nil>  if wrapping on behalf of an Entity this is it?
	cr                              <Character>  cache of Character cr
	lf                              <Character>  cache of Character lf


Class protocol:

instance creation
o  emptyWithExtraSpace: space

o  stream: str protocol: key name: value entity: entity


Instance protocol:

accessing
o  characterSize: aCharacter
return the number of bytes required to encode aCharacter

o  checkEncoding
Look for UTF-16 BOM and set the encoded stream accordingly

o  close

o  column

o  column: something

o  entity

o  line

o  line: something

o  name

o  protocol

o  stream

declaration
o  encodingDeclIn: aParser
we are already using the correct encoder

o  expected: string

o  mustFind: str errorOn: aParser

o  quotedString

o  sdDeclIn: aParser

o  skipIf: str

o  skipSpaceIn: aParser

o  textDeclIn: aParser

o  versionInfoIn: aParser

o  xmlDeclIn: aParser

initialization
o  stream: str protocol: key name: value entity: ent

o  usedAsExternal

o  usedAsExternal: aBoolean

private
o  error: aStringOrMessage

streaming
o  nextFor: aParser
to speed up things, do a quick check for
common characters

o  skip: n

testing
o  atEnd



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 19 Apr 2024 13:08:27 GMT