MarkupUtil

MarkupUtilクラスは、Starドキュメントマークアップをプリンターコマンドに変換するための静的メソッドを提供します。
このクラスは Document クラスのラッパークラスです。

NameSpace: StarMicronics.StarDocumentMarkup

Syntax

public static class MarkupUtil

Methods

Render(Byte[], StarPrinterEmulation, ConversionOptions)

Starドキュメントマークアップをbyte配列バッファで入力し、指定したエミュレーションのプリンターコマンドに変換します。

Declaration

public static Stream Render(byte[] inputBuffer, StarPrinterEmulation outputEmulation, ConversionOptions options)

Parameters

Type

Name

Description

System.Byte[]

inputBuffer

入力byte配列バッファ, Starドキュメントマークアップ

StarPrinterEmulation

outputEmulation

変換先に指定するプリンターエミュレーション

ConversionOptions

options

変換パラメーターと出力結果を指定するための変換オプション

Returns

Type

Description

System.IO.Stream

指定したエミュレーションのプリンターコマンドが返されます。

Render(Stream, StarPrinterEmulation, ConversionOptions)

Starドキュメントマークアップの入力ストリームを、指定したエミュレーションのプリンターコマンドに変換します。

Declaration

public static Stream Render(Stream inputStream, StarPrinterEmulation outputEmulation, ConversionOptions options)

Parameters

Type

Name

Description

System.IO.Stream

inputStream

Starドキュメントマークアップが格納されたStreamオブジェクト

StarPrinterEmulation

outputEmulation

変換先に指定するプリンターエミュレーション

ConversionOptions

options

変換パラメーターと出力結果を指定するための変換オプション

Returns

Type

Description

System.IO.Stream

指定したエミュレーションのプリンターコマンドが返されます。

RenderFile(string, StarPrinterEmulation, ConversionOptions)

Starドキュメントマークアップのファイルをロードし、指定したエミュレーションのプリンターコマンドに変換します。

Declaration

public static Stream RenderFile(string fileName, StarPrinterEmulation outputEmulation, ConversionOptions options)

Parameters

Type

Name

Description

System.String

fileName

Starドキュメントマークアップが保存された入力ファイル名

StarPrinterEmulation

outputEmulation

変換先に指定するプリンターエミュレーション

ConversionOptions

options

変換パラメーターと出力結果を指定するための変換オプション

Returns

Type

Description

System.IO.Stream

指定したエミュレーションのプリンターコマンドが返されます。

RenderWithApplyTemplate(Byte[], Byte[], StarPrinterEmulation, ConversionOptions)

テンプレートデータ(Star Document Markup)とフィールドデータ(JSON)をbyte配列バッファで入力し、指定したエミュレーションのプリンターコマンドに変換します。

Declaration

public static Stream RenderWithApplyTemplate(byte[] templateBuffer, byte[] fieldBuffer, StarPrinterEmulation outputEmulation, ConversionOptions options)

Parameters

Type

Name

Description

System.Byte[]

templateBuffer

入力byte配列バッファ, テンプレートデータ (Star Document Markup)

System.Byte[]

fieldBuffer

入力byte配列バッファ, フィールドデータ (JSON)

StarPrinterEmulation

outputEmulation

変換先に指定するプリンターエミュレーション

ConversionOptions

options

変換パラメーターと出力結果を指定するための変換オプション

Returns

Type

Description

System.IO.Stream

指定したエミュレーションのプリンターコマンドが返されます。

RenderWithApplyTemplate(Stream, Stream, StarPrinterEmulation, ConversionOptions)

テンプレートデータ(Star Document Markup)とフィールドデータ(JSON)の入力ストリームを、指定したエミュレーションのプリンターコマンドに変換します。

Declaration

public static Stream RenderWithApplyTemplate(Stream templateInputStream, Stream fieldInputStream, StarPrinterEmulation outputEmulation, ConversionOptions options)

Parameters

Type

Name

Description

System.IO.Stream

templateInputStream

入力テンプレートデータ (Star Document Markup) が格納されたStreamオブジェクト

System.IO.Stream

fieldInputStream

入力フィールドデータ (JSON) が格納されたStreamオブジェクト

StarPrinterEmulation

outputEmulation

変換先に指定するプリンターエミュレーション

ConversionOptions

options

変換パラメーターと出力結果を指定するための変換オプション

Returns

Type

Description

System.IO.Stream

指定したエミュレーションのプリンターコマンドが返されます。

RenderFileWithApplyTemplate(string, string, StarPrinterEmulation, ConversionOptions)

テンプレートデータ(Star Document Markup)とフィールドデータ(JSON)の入力ストリームを、指定したエミュレーションのプリンターコマンドに変換します。

Declaration

public static Stream RenderFileWithApplyTemplate(string templateFileName, string fieldFileName, StarPrinterEmulation outputEmulation, ConversionOptions options)

Parameters

Type

Name

Description

System.String

templateFileName

入力ファイル名, テンプレートデータ (Star Document Markup)

System.String

fieldFileName

入力ファイル名, フィールドデータ (JSON)

StarPrinterEmulation

outputEmulation

変換先に指定するプリンターエミュレーション

ConversionOptions

options

変換パラメーターと出力結果を指定するための変換オプション

Returns

Type

Description

System.IO.Stream

指定したエミュレーションのプリンターコマンドが返されます。