Uses of Record Class
dev.omnist.document.Limits
Packages that use Limits
Package
Description
Reading and writing the
Document model as the
non-OML wire formats — JSON, YAML, TOML, and XML (omnist-spec §7.3) — including
the lossy-adjustment reporting (WriteReport) that
records when a format's constraints force a value to be adjusted on write.Omnist document data model core package.
The lexer and parser for OML, Omnist's canonical text format (omnist-spec §4)
— the format every other codec's input is normalized through and every
omnist format output is written in.OSD (Omnist Schema Definition) modeling and I/O: the
Schema
type model — records, fields, scalar kinds — plus the lexer, parser, and writer
that read and write schemas in their canonical text form (omnist-spec §5).-
Uses of Limits in dev.omnist.codec
Methods in dev.omnist.codec with parameters of type LimitsModifier and TypeMethodDescriptionstatic DocumentJsonCodec.readWithLimits(String text, Limits limits) Parses JSON text into aDocument, refusing input larger thanmaxInputBytes()bytes (D-23) and honouring the depth, node-count and integer-digit bounds oflimits(D-9, E-4a) with the diagnostics the OML reader gives:document.limit.depthanddocument.limit.nodesat$,document.limit.int-digitsat the Document path of the integer.static DocumentTomlCodec.readWithLimits(String text, Limits limits) Parses TOML text into aDocument, refusing input larger thanmaxInputBytes()bytes (D-23) and honouring the depth, node-count and integer-digit bounds oflimits(D-9, E-4a) with the diagnostics the OML reader gives:document.limit.depthanddocument.limit.nodesat$,document.limit.int-digitsat the Document path of the integer, counting the digits of the value whatever the literal's radix or underscores (D-28).static DocumentXmlCodec.readWithLimits(String text, Schema schema, WriteReport report, Limits limits) Parses XML text asXmlCodec.read(String, Schema, WriteReport)does, refusing input larger thanmaxInputBytes()bytes (D-23) and honouring the depth, node-count and integer-digit bounds oflimits(D-9, E-4a):document.limit.depthanddocument.limit.nodesat$; the digit bound applies to an integer pretyped fromschema, at the Document path of the leaf.static DocumentYamlCodec.readWithLimits(String text, YamlLimits limits, Limits documentLimits) Parses YAML text asYamlCodec.readWithLimits(String, YamlLimits)does, and refuses input larger thanmaxInputBytes()bytes first (D-23). -
Uses of Limits in dev.omnist.document
Fields in dev.omnist.document declared as LimitsModifier and TypeFieldDescriptionstatic final LimitsLimits.DEFAULTNormative reference default limits per omnist-spec §2.4, plus this port's input-size default.Methods in dev.omnist.document that return LimitsModifier and TypeMethodDescriptionLimits.withMaxInputBytes(int bytes) Returns these limits with another input-size maximum. -
Uses of Limits in dev.omnist.oml
Methods in dev.omnist.oml with parameters of type LimitsModifier and TypeMethodDescriptionstatic DocumentParses OML text into aDocumentusing caller-supplied safety limits.Constructors in dev.omnist.oml with parameters of type Limits -
Uses of Limits in dev.omnist.schema
Methods in dev.omnist.schema with parameters of type LimitsModifier and TypeMethodDescriptionstatic SchemaParses OSD text asOsdReader.read(String)does, refusing source of more thanmaxInputBytes()bytes withdocument.limit.input-sizeat$(D-23).Constructors in dev.omnist.schema with parameters of type LimitsModifierConstructorDescriptionConstructs a reader that refuses source of more thanmaxInputBytes()bytes (D-23).