public <T> T readObject(final Class<T> type) throws ClassNotFoundException, IOException { final Object obj = readObject(false); try { return type.cast(obj); } catch (ClassCastException e) { throw wrongType(e, type, obj.getClass()); } }
public <T> T readObjectUnshared(final Class<T> type) throws ClassNotFoundException, IOException { final Object obj = readObject(true); try { return type.cast(obj); } catch (ClassCastException e) { throw wrongType(e, type, obj.getClass()); } }
public <T> T readObject(final Class<T> type) throws ClassNotFoundException, IOException { final Object obj = readObject(false); try { return type.cast(obj); } catch (ClassCastException e) { throw wrongType(e, type, obj.getClass()); } }
public <T> T readObjectUnshared(final Class<T> type) throws ClassNotFoundException, IOException { final Object obj = readObject(true); try { return type.cast(obj); } catch (ClassCastException e) { throw wrongType(e, type, obj.getClass()); } }
public <T> T readObjectUnshared(final Class<T> type) throws ClassNotFoundException, IOException { final Object obj = readObject(true); try { return type.cast(obj); } catch (ClassCastException e) { throw wrongType(e, type, obj.getClass()); } }
public <T> T readObjectUnshared(final Class<T> type) throws ClassNotFoundException, IOException { final Object obj = readObject(true); try { return type.cast(obj); } catch (ClassCastException e) { throw wrongType(e, type, obj.getClass()); } }
public <T> T readObjectUnshared(final Class<T> type) throws ClassNotFoundException, IOException { final Object obj = readObject(true); try { return type.cast(obj); } catch (ClassCastException e) { throw wrongType(e, type, obj.getClass()); } }
public <T> T readObject(final Class<T> type) throws ClassNotFoundException, IOException { final Object obj = readObject(false); try { return type.cast(obj); } catch (ClassCastException e) { throw wrongType(e, type, obj.getClass()); } }
public <T> T readObjectUnshared(final Class<T> type) throws ClassNotFoundException, IOException { final Object obj = readObject(true); try { return type.cast(obj); } catch (ClassCastException e) { throw wrongType(e, type, obj.getClass()); } }
public <T> T readObject(final Class<T> type) throws ClassNotFoundException, IOException { final Object obj = readObject(false); try { return type.cast(obj); } catch (ClassCastException e) { throw wrongType(e, type, obj.getClass()); } }
public <T> T readObject(final Class<T> type) throws ClassNotFoundException, IOException { final Object obj = readObject(false); try { return type.cast(obj); } catch (ClassCastException e) { throw wrongType(e, type, obj.getClass()); } }
public <T> T readObject(final Class<T> type) throws ClassNotFoundException, IOException { final Object obj = readObject(false); try { return type.cast(obj); } catch (ClassCastException e) { throw wrongType(e, type, obj.getClass()); } }