clog_cname.java

来自「MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程」· Java 代码 · 共 36 行

JAVA
36
字号
import java.io.*;import java.awt.*;import java.util.*;import com.sun.java.swing.*;class CLOG_CNAME {  static final int size = (3 * 8);  String name;    //Constructor  public CLOG_CNAME () {name = new String ();}    //read the record  void read (DataInputStream in) {    byte []b = new byte [3 * 8];    try {      in.readFully (b);    }    catch (IOException x) {      System.out.println ("IOException in CLOG_CNAME.read");       return;    }    //Here we use platform's default character encoding.     //Its probably from ascii but, don't know whether     //will work always."INVESTIGATE!"    name = (new String (b, 0, 3 * 8)).trim ();  }    public static int getSize () {return size;}  public String toString () {    return ("CLOG_CNAME [name=" + name + ", size=" + size + "]");  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?