Home Reference Source Repository
import {PadPrinterParserDecorator} from 'js-joda/src/format/parser/PadPrinterParserDecorator.js'
public class | source

PadPrinterParserDecorator

Pads the output to a fixed width.

Constructor Summary

Public Constructor
public

constructor(printerParser: *, padWidth: *, padChar: *)

Constructor.

Method Summary

Public Methods
public

parse(context: *, text: *, position: *): *

public

print(context: *, buf: *): boolean

public

Public Constructors

public constructor(printerParser: *, padWidth: *, padChar: *) source

Constructor.

Params:

NameTypeAttributeDescription
printerParser *

the printer, not null

padWidth *

the width to pad to, 1 or greater

padChar *

the pad character

Public Methods

public parse(context: *, text: *, position: *): * source

Params:

NameTypeAttributeDescription
context *
text *
position *

Return:

*

public print(context: *, buf: *): boolean source

Params:

NameTypeAttributeDescription
context *
buf *

Return:

boolean

public toString(): string source

Return:

string