Package jpvm

Examples of jpvm.jpvmException


      buffer.send(conn);
      strm.flush();
    }
    catch (IOException ioe) {
      jpvmDebug.note("jpvmMessage, send - i/o exception");
      throw new jpvmException("jpvmMessage, send - " +
        "i/o exception");
    }
  }
View Full Code Here


      buffer = new jpvmBuffer();
      buffer.recv(conn);
    }
    catch (IOException ioe) {
      jpvmDebug.note("jpvmMessage, recv - i/o exception");
      throw new jpvmException("jpvmMessage, recv - " +
        "i/o exception");
    }
  }
View Full Code Here

        }

  public void unpack(int d[], int n, int stride)
      throws jpvmException {
    if(dataType != jpvmDataType.jpvmInteger) {
        throw new jpvmException("buffer type mismatch, upkint.");
    }
    if(stride==1) {
      System.arraycopy(intArray,0,d,0,n);
    }
    else {
View Full Code Here

    }
  }

  public void unpack(short d[], int n, int stride) throws jpvmException {
    if(dataType != jpvmDataType.jpvmShort) {
        throw new jpvmException("buffer type mismatch, upkshort.");
    }
    if(stride==1) {
      System.arraycopy(shortArray,0,d,0,n);
    }
    else {
View Full Code Here

    }
  }

  public void unpack(byte d[], int n, int stride) throws jpvmException {
    if(dataType != jpvmDataType.jpvmByte) {
        throw new jpvmException("buffer type mismatch, upkbyte.");
    }
    if(stride==1)
      System.arraycopy(byteArray,0,d,0,n);
    else {
      int i,j;
View Full Code Here

    }
  }

  public void unpack(char d[], int n, int stride) throws jpvmException {
    if(dataType != jpvmDataType.jpvmChar) {
        throw new jpvmException("buffer type mismatch, upkchar.");
    }
    if(stride==1) {
      System.arraycopy(charArray,0,d,0,n);
    }
    else {
View Full Code Here

    }
  }

  public void unpack(long d[], int n, int stride) throws jpvmException {
    if(dataType != jpvmDataType.jpvmLong) {
        throw new jpvmException("buffer type mismatch, upklong.");
    }
    if(stride==1) {
      System.arraycopy(longArray,0,d,0,n);
    }
    else {
View Full Code Here

    }
  }

  public void unpack(double d[], int n, int stride) throws jpvmException {
    if(dataType != jpvmDataType.jpvmDouble) {
        throw new jpvmException("buffer type mismatch, upkdouble.");
    }
    if(stride==1) {
      System.arraycopy(doubleArray,0,d,0,n);
    }
    else {
View Full Code Here

    }
  }

  public void unpack(float d[], int n, int stride) throws jpvmException {
    if(dataType != jpvmDataType.jpvmFloat) {
        throw new jpvmException("buffer type mismatch, upkfloat.");
    }
    if(stride==1) {
      System.arraycopy(floatArray,0,d,0,n);
    }
    else {
View Full Code Here

  }

  public void unpack(jpvmTaskId d[], int n, int stride)
      throws jpvmException {
    if(dataType != jpvmDataType.jpvmTid) {
        throw new jpvmException("buffer type mismatch, upktid.");
    }
    if(stride==1) {
      System.arraycopy(taskArray,0,d,0,n);
    }
    else {
View Full Code Here

TOP

Related Classes of jpvm.jpvmException

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.