ezvcard.io.scribe
Class KeyScribe

java.lang.Object
  extended by ezvcard.io.scribe.VCardPropertyScribe<T>
      extended by ezvcard.io.scribe.BinaryPropertyScribe<Key,KeyType>
          extended by ezvcard.io.scribe.KeyScribe

public class KeyScribe
extends BinaryPropertyScribe<Key,KeyType>

Marshals Key properties.

Author:
Michael Angstadt

Nested Class Summary
 
Nested classes/interfaces inherited from class ezvcard.io.scribe.VCardPropertyScribe
VCardPropertyScribe.DateWriter, VCardPropertyScribe.Result<T extends VCardProperty>, VCardPropertyScribe.SemiStructuredIterator, VCardPropertyScribe.Splitter, VCardPropertyScribe.StructuredIterator
 
Field Summary
 
Fields inherited from class ezvcard.io.scribe.VCardPropertyScribe
clazz, propertyName, qname
 
Constructor Summary
KeyScribe()
           
 
Method Summary
protected  KeyType _buildMediaTypeObj(String mediaType)
          Builds a MediaTypeParameter object based on the information in the MEDIATYPE parameter or data URI of 4.0 vCards.
protected  KeyType _buildTypeObj(String type)
          Builds a MediaTypeParameter object based on the value of the TYPE parameter in 2.1/3.0 vCards.
protected  Key _newInstance(byte[] data, KeyType contentType)
           
protected  Key _newInstance(String uri, KeyType contentType)
           
 
Methods inherited from class ezvcard.io.scribe.BinaryPropertyScribe
_dataType, _defaultDataType, _parseHtml, _parseJson, _parseText, _parseXml, _prepareParameters, _writeJson, _writeText, _writeXml, cannotUnmarshalValue, parseContentType
 
Methods inherited from class ezvcard.io.scribe.VCardPropertyScribe
dataType, date, date, defaultDataType, escape, getPropertyClass, getPropertyName, getQName, handlePrefParam, list, list, list, missingXmlElements, missingXmlElements, parseHtml, parseJson, parseText, parseXml, prepareParameters, semistructured, semistructured, split, structured, structured, structured, unescape, writeJson, writeText, writeXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyScribe

public KeyScribe()
Method Detail

_buildTypeObj

protected KeyType _buildTypeObj(String type)
Description copied from class: BinaryPropertyScribe
Builds a MediaTypeParameter object based on the value of the TYPE parameter in 2.1/3.0 vCards.

Specified by:
_buildTypeObj in class BinaryPropertyScribe<Key,KeyType>
Parameters:
type - the TYPE value
Returns:
the parameter object

_buildMediaTypeObj

protected KeyType _buildMediaTypeObj(String mediaType)
Description copied from class: BinaryPropertyScribe
Builds a MediaTypeParameter object based on the information in the MEDIATYPE parameter or data URI of 4.0 vCards.

Specified by:
_buildMediaTypeObj in class BinaryPropertyScribe<Key,KeyType>
Parameters:
mediaType - the media type string (e.g. "image/jpeg")
Returns:
the parameter object

_newInstance

protected Key _newInstance(String uri,
                           KeyType contentType)
Specified by:
_newInstance in class BinaryPropertyScribe<Key,KeyType>

_newInstance

protected Key _newInstance(byte[] data,
                           KeyType contentType)
Specified by:
_newInstance in class BinaryPropertyScribe<Key,KeyType>


Copyright © 2012-2014 Michael Angstadt. All Rights Reserved.