Example usage for java.io ObjectStreamField getTypeCode

List of usage examples for java.io ObjectStreamField getTypeCode

Introduction

In this page you can find the example usage for java.io ObjectStreamField getTypeCode.

Prototype


public char getTypeCode() 

Source Link

Document

Returns character encoding of field type.

Usage

From source file:net.datenwerke.transloader.primitive.WrapperConverter.java

private static char getTypeCode(Object wrapper) {
    Class primitiveType = ClassUtils.wrapperToPrimitive(wrapper.getClass());
    ObjectStreamField typeCodeProvider = new ObjectStreamField(IRRELEVANT, primitiveType);
    return typeCodeProvider.getTypeCode();
}