List of usage examples for java.io ObjectInputStream defaultReadObject
public void defaultReadObject() throws IOException, ClassNotFoundException
From source file:FloatArrayList.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); array = new float[in.readInt()]; for (int i = 0; i < size; i++) { array[i] = in.readFloat();//from w ww .j a v a 2 s. c o m } }
From source file:ByteArrayList.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); array = new byte[in.readInt()]; for (int i = 0; i < size; i++) { array[i] = in.readByte();//from w w w. j a v a 2s.c o m } }
From source file:LongArrayList.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); array = new long[in.readInt()]; for (int i = 0; i < size; i++) { array[i] = in.readLong();//from w w w. j ava 2 s .co m } }
From source file:IntArrayList.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); array = new int[in.readInt()]; for (int i = 0; i < size; i++) { array[i] = in.readInt();//from w w w.jav a2s .co m } }
From source file:net.sf.jasperreports.chartthemes.simple.LegendSettings.java
@SuppressWarnings("deprecation") private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_7_2) { positionValue = EdgeEnum.getByValue(position); position = null;/* ww w . jav a2 s .co m*/ } if (blockFrame != null && frame == null)// check version? { frame = new BlockFrameWrapper(blockFrame); blockFrame = null; } }
From source file:com.ojcoleman.ahni.util.DoubleVector.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); _data = new double[in.readInt()]; for (int i = 0; i < _size; i++) { _data[i] = in.readDouble();// w w w .j a v a 2 s . c o m } }
From source file:org.codice.ddf.catalog.content.monitor.DavAlterationObserver.java
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); listeners = new LinkedHashSet<>(); }
From source file:org.saiku.web.core.SecurityAwareConnectionManager.java
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); connections = new HashMap<>(); }
From source file:org.jfree.data.general.AbstractDataset.java
/** * Restores a serialized object.//from w ww . j a va 2 s .co m * * @param stream the input stream. * * @throws IOException if there is an I/O problem. * @throws ClassNotFoundException if there is a problem loading a class. */ private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); this.listenerList = new EventListenerList(); stream.registerValidation(this, 10); // see comments about priority of // 10 in validateObject() }
From source file:com.bisone.saiku.security.replace.SecurityAwareConnectionManager.java
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); connections = new HashMap<String, ISaikuConnection>(); }