Click or drag to resize
NativeBuffer Class
A buffer for calls to INativeExtractionContentHandler and INativeGenerationContentHandler Set the Output property on the buffer to the correct derived type. Strongly typed properties ExtractionOutput and GenerationOutput Both map to the same Output instance, and can be used equivocally. Start buffering calls by calling Hold, and stops buffering by calling Release. When Release is called, any calls that are in the buffer will be invoked on the Output, or Output. If Release is called after EndOfInput is received and there is content left in the buffer, an exception is thrown, since the output should not be generated after EndOfInput. It is the buffer user's responsibility to ensure that the buffer is emptied before end of input is called for the parser components following it.
Inheritance Hierarchy
SystemObject
  Sdl.FileTypeSupport.Framework.Core.Utilities.NativeApi.BufferNativeBuffer

Namespace: Sdl.FileTypeSupport.Framework.Core.Utilities.NativeApi.Buffer
Assembly: Sdl.FileTypeSupport.Framework.Core.Utilities (in Sdl.FileTypeSupport.Framework.Core.Utilities.dll) Version: 1.0.0.0 (1.0.2551.0)
Syntax
public class NativeBuffer

The NativeBuffer type exposes the following members.

Constructors
  NameDescription
Public methodNativeBuffer
Default constructor, creates an empty buffer where IsHolding is false.
Top
Properties
  NameDescription
Public propertyBufferedCalls
Provides access to the calls currently in the buffer.
Public propertyExtractionOutput
Strongly typed output content handler that can be used when the buffer is used for extraction.
Public propertyGenerationOutput
Strongly typed output content handler that can be used when the buffer is used for generation.
Public propertyIsEndOfInput
True, if EndOfInput has been reached. After that, Release() is no longer permitted if the buffer contains any content. This property can be set to override this behaviour, but that is an advanced option that should only be exercised if no other option is available.
Public propertyIsHolding
Indicates whether the buffer is actively buffering calls.
Public propertyLastBufferedCall
Provides easy access to the most recent of the calls in the buffer. If no calls are in the buffer, this property returns null.
Public propertyOutput
Agnostic access to the output handler. Accesses the very same object instance as the ExtractionOutput and the GenerationOutput properties.
Top
Methods
  NameDescription
Public methodChangeContext
Adds content to buffer if holding, otherwise output directly.
Public methodCommentEnd
Adds to buffer if holding, otherwise output directly.
Public methodCommentStart
Adds to buffer if holding, otherwise output directly.
Public methodCustomInfo
Adds content to buffer if holding, otherwise output directly.
Public methodEndOfInput
Sets the end of input flag.
Public methodHold
Call this to start buffering calls.
Public methodInlineEndTag
Adds content to buffer if holding, otherwise output directly.
Public methodInlinePlaceholderTag
Adds content to buffer if holding, otherwise output directly.
Public methodInlineStartTag
Adds content to buffer if holding, otherwise output directly.
Public methodLocationMark
Add to buffer if holding, otherwise output directly.
Public methodLockedContentEnd
Adds to buffer if holding, otherwise output directly.
Public methodLockedContentStart
Adds content to buffer if holding, otherwise output directly.
Public methodParagraphComments
Adds to buffer if holding, otherwise output directly.
Public methodParagraphUnitEnd
Adds to buffer if holding, otherwise output directly.
Public methodParagraphUnitStart
Adds to buffer if holding, otherwise output directly.
Public methodRelease
Releases the buffer content to the Output and turns off buffering.
Public methodRevisionEnd
Adds to buffer if holding, otherwise output directly.
Public methodRevisionStart
Adds to buffer if holding, otherwise output directly.
Public methodSegmentEnd
Adds to buffer if holding, otherwise output directly.
Public methodSegmentStart
Adds to buffer if holding, otherwise output directly.
Public methodSetFileProperties
Default implementation, does nothing
Public methodStartOfInput
Default implementation, does nothing
Public methodStructureTag
Adds content to buffer if holding, otherwise output directly.
Public methodText
Adds content to buffer if holding, otherwise output directly.
Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments