public class UriThriftCodec extends Object implements ThriftCodec<URI>
| Constructor and Description |
|---|
UriThriftCodec(ThriftCatalog thriftCatalog) |
| Modifier and Type | Method and Description |
|---|---|
ThriftType |
getType()
The Thrift type this codec supports.
|
URI |
read(TProtocolReader protocol)
Reads a value from supplied Thrift protocol reader.
|
static URI |
stringToUri(String uri) |
static String |
uriToString(URI uri) |
void |
write(URI value,
TProtocolWriter protocol)
Writes a value to the supplied Thrift protocol writer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisNullpublic UriThriftCodec(ThriftCatalog thriftCatalog)
public ThriftType getType()
ThriftCodecgetType in interface ThriftCodec<URI>public URI read(TProtocolReader protocol) throws Exception
ThriftCodecread in interface ThriftCodec<URI>protocol - the protocol to read fromException - if any problems occurred when reading or coercing the valuepublic void write(URI value, TProtocolWriter protocol) throws Exception
ThriftCodecwrite in interface ThriftCodec<URI>value - the value to write; not nullprotocol - the protocol to write toException - if any problems occurred when writing or coercing the value@FromThrift public static URI stringToUri(String uri)
Copyright © 2012–2024. All rights reserved.