I have the POJO below :
public class CommDeviceSetting {
protected int commDeviceType;
protected Process bridge = null;
protected InputStream inStream = null;
protected InputStream errStream = null;
protected OutputStream outStream = null;
protected Reader reader = null;
protected Reader errReader = null;
protected Writer writer = null;
...
}
My question is how can I map these properties with types are classes from package java.io (InputStream, OutputStream, Reader...) and type Process.
In general, how can I map a property with non-standard type (which was created by another, and I don't know anything about its structure)?
Credit for every answer :) . Thanks.
|