Package org.springframework.integration.ip.tcp.serializer

Examples of org.springframework.integration.ip.tcp.serializer.SoftEndOfStreamException


    int n = 0;
    int bite;
    while (true) {
      bite = inputStream.read();
      if (bite < 0 && n == 0) {
        throw new SoftEndOfStreamException("Stream closed between payloads");
      }
      checkClosure(bite);
      if (n > 0 && bite == '\n' && buffer[n-1] == '\r') {
        break;
      }
View Full Code Here


//      logger.debug("Read:" + Integer.toHexString(bite));
      if (this.nio) {
        bite = checkclosed(bite, inputStream);
      }
      if (bite < 0 && n == 0) {
        throw new SoftEndOfStreamException("Stream closed between payloads");
      }
      checkClosure(bite);
      switch (n++) {
      case 0:
        fin = (bite & 0x80) > 0;
View Full Code Here

TOP

Related Classes of org.springframework.integration.ip.tcp.serializer.SoftEndOfStreamException

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.