Examples of writeExternal()


Examples of java.io.Externalizable.writeExternal()

    else if (obj instanceof Externalizable && (!Proxy.isProxyClass(cls)))
    {
      Externalizable extObj = (Externalizable)obj;
      try
      {
        extObj.writeExternal(new ObjectOutputAdaptor()
        {
          private int count = 0;

          public void writeObject(Object streamObj) throws IOException
          {
View Full Code Here

Examples of java.rmi.server.RemoteRef.writeExternal()

     
  } else {
      throw new InvalidObjectException("unexpected activator type");
  }
  out.writeUTF(ref.getRefClass(out));
  ref.writeExternal(out);
    }

    /**
     * <code>readObject</code> for custom serialization.
     *
 
View Full Code Here

Examples of javaewah.EWAHCompressedBitmap.writeExternal()

    EWAHCompressedBitmap bitmapAnd = bitmapBop(bitmap1, bitmap2);

    BitmapObjectOutput bitmapObjOut = new BitmapObjectOutput();
    try {
      bitmapAnd.writeExternal(bitmapObjOut);
    } catch (IOException e) {
      throw new RuntimeException(e);
    }
    ret.clear();
    List<LongWritable> retList = bitmapToWordArray(bitmapAnd);
View Full Code Here

Examples of joshua.corpus.CorpusArray.writeExternal()

    {
      String binarySourceCorpusFilename = outputDirName + File.separator + "source.corpus";
      if (logger.isLoggable(Level.INFO)) logger.info("Writing binary source corpus to disk at " + binarySourceCorpusFilename);
     
        BinaryOut corpusOut = new BinaryOut(new FileOutputStream(binarySourceCorpusFilename), false);
        sourceCorpusArray.writeExternal(corpusOut)
        corpusOut.flush();
       
      out.println("Source language corpus: " + binarySourceCorpusFilename);
    }
   
View Full Code Here

Examples of joshua.corpus.alignment.AlignmentGrids.writeExternal()

      {
        String binaryAlignmentsFilename = outputDirName + File.separator + "alignment.grids";
        if (logger.isLoggable(Level.INFO)) logger.info("Writing binary alignment grids to disk at " + binaryAlignmentsFilename);

        BinaryOut alignmentsOut = new BinaryOut(binaryAlignmentsFilename);
        grids.writeExternal(alignmentsOut);
        alignmentsOut.flush();
        alignmentsOut.close();

        out.println("Source-target alignment grids: " + binaryAlignmentsFilename);
      }
View Full Code Here

Examples of joshua.corpus.lexprob.LexProbs.writeExternal()

        String binaryLexCountFilename = outputDirName + File.separator + "lexicon.counts";
        if (logger.isLoggable(Level.INFO)) logger.info("Writing binary lexicon counts to disk at " + binaryLexCountFilename);

        //      BinaryOut lexCountOut = new BinaryOut(binaryLexCountFilename);
        ObjectOutput lexCountOut = new ObjectOutputStream(new FileOutputStream(binaryLexCountFilename));
        lexProbs.writeExternal(lexCountOut);
        lexCountOut.close();

        String s = lexProbs.toString();

        if (logger.isLoggable(Level.INFO)) logger.info("Writing lexprobs at " + lexprobsFilename);
View Full Code Here

Examples of joshua.corpus.lexprob.LexicalProbabilities.writeExternal()

        String binaryLexCountFilename = outputDirName + File.separator + "lexicon.counts";
        if (logger.isLoggable(Level.INFO)) logger.info("Writing binary lexicon counts to disk at " + binaryLexCountFilename);

        //      BinaryOut lexCountOut = new BinaryOut(binaryLexCountFilename);
        ObjectOutput lexCountOut = new ObjectOutputStream(new FileOutputStream(binaryLexCountFilename));
        lexProbs.writeExternal(lexCountOut);
        lexCountOut.close();

        String s = lexProbs.toString();

        if (logger.isLoggable(Level.INFO)) logger.info("Writing lexprobs at " + lexprobsFilename);
View Full Code Here

Examples of joshua.corpus.vocab.Vocabulary.writeExternal()

//    vocab.fixVocabulary();
   
   
    // Write the vocabulary to disk in binary format
    ObjectOutput out = new BinaryOut(outVocabFile);
    vocab.writeExternal(out);
   
  }
 
}
View Full Code Here

Examples of org.apache.derby.iapi.services.io.FormatableBitSet.writeExternal()

        for (int i = 0; i < ascDescInfo.length; i++)
        { 
            if (ascDescInfo[i])
                ascDescBits.set(i);
        }
        ascDescBits.writeExternal(out);
  }

    /**
     * Store the stored representation of the column value in the
     * stream.
 
View Full Code Here

Examples of org.apache.derby.iapi.services.io.FormatableBitSet.writeExternal()

        for (int i = 0; i < ascDescInfo.length; i++)
        { 
            if (ascDescInfo[i])
                ascDescBits.set(i);
        }
        ascDescBits.writeExternal(out);
  }

    /**
     * Store the stored representation of the column value in the
     * stream.
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.