new BufferedReader(new InputStreamReader(in, encoding));
try {
obj.setLabel(reader.readLine());
obj.setPid(reader.readLine());
} catch (IOException e) {
throw new StreamIOException("Error reading stream", e);
} finally {
try {
reader.close();
} catch (IOException e) {
throw new StreamIOException("Error closing reader", e);
}
}
}