Package research.store

Examples of research.store.StorableInput


        //begin ��ȡ��Ŀ�����ļ�
        try {
            zipEntry = zipFile.getEntry("index.txt");
            InputStream inputStream = zipFile.getInputStream(zipEntry);
            StorableInput indexInput = new StorableInput(inputStream);

            int viewNum = indexInput.readInt();

            if (viewNum > 0) {
                viewNameArray = new String[viewNum];
                for (int i = 0; i < viewNum; i++) {
                    viewNameArray[i] = indexInput.readString();
                }
            } else {
                viewNameArray = new String[0];
            }
View Full Code Here


      output.close(); // ���ܵ�������Χû�취�õ����������Ϣ
      return ;
    }

    public Drawing restore(InputStream stream) throws IOException {
        StorableInput input = new StorableInput(stream);
        return (Drawing) input.readStorable();
    }
View Full Code Here

        //begin ��ȡ��Ŀ�����ļ�
        try {
            zipEntry = zipFile.getEntry("index.txt");
            InputStream inputStream = zipFile.getInputStream(zipEntry);
            StorableInput indexInput = new StorableInput(inputStream);

            int viewNum = indexInput.readInt();

            if (viewNum > 0) {
                viewNameArray = new String[viewNum];
                for (int i = 0; i < viewNum; i++) {
                    viewNameArray[i] = indexInput.readString();
                }
            } else {
                viewNameArray = new String[0];
            }
View Full Code Here

        output.close();
        return;
    }

    public Drawing restore(InputStream stream) throws IOException {
        StorableInput input = new StorableInput(stream);
        return (Drawing) input.readStorable();
    }
View Full Code Here

        //begin ��ȡ��Ŀ�����ļ�
        try {
            zipEntry = zipFile.getEntry("index.txt");
            InputStream inputStream = zipFile.getInputStream(zipEntry);
            StorableInput indexInput = new StorableInput(inputStream);

            domainName = indexInput.readString();
            int viewNum = indexInput.readInt();

            if (viewNum > 0) {
                viewNameArray = new String[viewNum];
                for (int i = 0; i < viewNum; i++) {
                    viewNameArray[i] = indexInput.readString();
                }
            } else {
                viewNameArray = new String[0];
            }
View Full Code Here

      output.close(); // ���ܵ�������Χû�취�õ����������Ϣ
      return ;
    }

    public Drawing restore(InputStream stream) throws IOException {
        StorableInput input = new StorableInput(stream);
        return (Drawing) input.readStorable();
    }
View Full Code Here

   */
  public Object getData(String type) {
    if (type.equals(TYPE)) {
      InputStream input = new ByteArrayInputStream(fData);
      Vector result = new Vector(10);
      StorableInput reader = new StorableInput(input);
      int numRead = 0;
      try {
        int count = reader.readInt();
        while (numRead < count) {
          Figure newFigure = (Figure) reader.readStorable();
          result.addElement(newFigure);
          numRead++;
        }
      }
      catch (IOException e) {
View Full Code Here

TOP

Related Classes of research.store.StorableInput

Copyright © 2018 www.massapicom. 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.