Example usage for java.io ObjectStreamField ObjectStreamField

List of usage examples for java.io ObjectStreamField ObjectStreamField

Introduction

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

Prototype

public ObjectStreamField(String name, Class<?> type) 

Source Link

Document

Create a Serializable field with the specified 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();
}