public class TagChunkCodecAdapters extends Object
TagChunkCodecAdapters class contains static utility methods for
adapting tagging handlers to chunking handlers and vice-versa using tag-chunk
codecs.| Modifier and Type | Method and Description |
|---|---|
static ObjectHandler<StringTagging> |
chunkingToStringTagging(TagChunkCodec codec,
ObjectHandler<Chunking> handler)
Return the string tagging handler that converts string taggings
to chunkings.
|
static ObjectHandler<Tagging<String>> |
chunkingToTagging(TagChunkCodec codec,
ObjectHandler<Chunking> handler)
Returns the tagging handler that converts taggings to chunkings
using the specified codec.
|
static ObjectHandler<Chunking> |
stringTaggingToChunking(TagChunkCodec codec,
ObjectHandler<StringTagging> handler)
Return the chunking handler that converts chunkings to taggings
using the specified codec.
|
static ObjectHandler<Chunking> |
taggingToChunking(TagChunkCodec codec,
ObjectHandler<Tagging<String>> handler)
Return the chunking handler that converts chunkings to simple
taggings using the specified codec.
|
public static ObjectHandler<Chunking> stringTaggingToChunking(TagChunkCodec codec, ObjectHandler<StringTagging> handler)
codec - Tag chunk coder/decoder for converting chunkings
to string taggings.handler - Handler to receive string taggings corresponding
to chunkings.public static ObjectHandler<Chunking> taggingToChunking(TagChunkCodec codec, ObjectHandler<Tagging<String>> handler)
codec - Tag chunk coder/decoder for converting chunkings
to taggings.handler - Handler to receive string taggings corresponding
to chunkings.public static ObjectHandler<StringTagging> chunkingToStringTagging(TagChunkCodec codec, ObjectHandler<Chunking> handler)
codec - Tag-chunk coder/decoder for converting string
taggings to chunkings.handler - Handler to receive chunkings.public static ObjectHandler<Tagging<String>> chunkingToTagging(TagChunkCodec codec, ObjectHandler<Chunking> handler)
codec - Tag-chunk coder/decoder for converting string
taggings to chunkings.handler - Handler to receive chunkings.Copyright © 2019 Alias-i, Inc.. All rights reserved.