コード例 #1
0
 private void readObject(java.io.ObjectInputStream in)
     throws java.io.IOException, ClassNotFoundException {
   in.defaultReadObject();
   synchronized (this) {
     wq_ = new FIFOWaitQueue();
   }
 }
コード例 #2
0
  private void readObject(java.io.ObjectInputStream stream)
      throws java.io.IOException, ClassNotFoundException {

    stream.defaultReadObject();
    try {
      buildExpression(cronExpression);
    } catch (Exception ignore) {
    } // never happens
  }
コード例 #3
0
ファイル: ArrayDeque.java プロジェクト: SmallMaoBoy/monkey77
  /** Deserialize this deque. */
  private void readObject(java.io.ObjectInputStream s)
      throws java.io.IOException, ClassNotFoundException {
    s.defaultReadObject();

    // Read in size and allocate array
    int size = s.readInt();
    allocateElements(size);
    head = 0;
    tail = size;

    // Read in all elements in the proper order.
    for (int i = 0; i < size; i++) elements[i] = s.readObject();
  }
コード例 #4
0
  /**
   * Reconstitute the <tt>ConcurrentHashMap</tt> instance from a stream (i.e., deserialize it).
   *
   * @param s the stream
   */
  private void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException {
    s.defaultReadObject();

    // Initialize each segment to be minimally sized, and let grow.
    for (int i = 0; i < segments.length; ++i) {
      segments[i].setTable(new HashEntry[1]);
    }

    // Read the keys and values, and put the mappings in the table
    for (; ; ) {
      K key = (K) s.readObject();
      V value = (V) s.readObject();
      if (key == null) break;
      put(key, value);
    }
  }
コード例 #5
0
 private void readObject(final java.io.ObjectInputStream s)
     throws java.io.IOException, ClassNotFoundException {
   s.defaultReadObject();
   if (waitingProducers instanceof FifoWaitQueue) transferer = new TransferQueue();
   else transferer = new TransferStack();
 }
コード例 #6
0
 private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
   in.defaultReadObject();
 }
コード例 #7
0
 /** readObject is called to restore the state of the ServicePermission from a stream. */
 private void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException {
   // Read in the action, then initialize the rest
   s.defaultReadObject();
   init(getName(), getMask(actions));
 }
コード例 #8
0
ファイル: Synset.java プロジェクト: cyrilmhansen/ExtJWNL
 private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
   in.defaultReadObject();
   dictionary = Dictionary.getRestoreDictionary();
 }
コード例 #9
0
 /** readObject is called to restore the state of the ExecPermission from a stream. */
 private synchronized void readObject(java.io.ObjectInputStream s)
     throws IOException, ClassNotFoundException {
   s.defaultReadObject();
   // init is called to initialize the rest of the values.
   init(getName());
 }