Package org.eclipse.jetty.io

Examples of org.eclipse.jetty.io.EofException


            totalFilled += filled;
        }
        catch (IOException e)
        {
          Log.debug(e);
          throw (e instanceof EofException) ? e:new EofException(e);     
        }
      }
     
      if (filled < 0)
      {
        if (_state == STATE_EOF_CONTENT)
        {
          _state = STATE_END;
          _handler.content(_buffer.sliceFromMark(_contentPosition));
          return totalFilled;
        }
        //reset();
        throw new EofException();
      }
      length = _buffer.length();
    }
   
    byte b;
View Full Code Here


        {
          fb.clear();
          int read = fill(fb);
         
          if (read == -1)
            throw new EofException();
         
          int length =
            (fb.peek(1) & 0xff) << 16
            | (fb.peek(2) & 0xff) << 8
            | (fb.peek(3) & 0xff);
         
          Buffer b = new ByteArrayBuffer(length);

          int totalRead = 4;
          b.put(fb);
         
          while (totalRead < length)
          {
            read = fill(b);
 
            if (read == -1)
              throw new EofException();
            totalRead += read;
          }
                   
          DiameterMessage message = Codecs.__message.decode(b);
          message.setConnection(this);
View Full Code Here

                case PENDING:
                case UNREADY:
                    throw new WritePendingException();

                case CLOSED:
                    throw new EofException("Closed");
            }
            break;
        }

View Full Code Here

                case PENDING:
                case UNREADY:
                    throw new WritePendingException();

                case CLOSED:
                    throw new EofException("Closed");
            }
            break;
        }

View Full Code Here

                case PENDING:
                case UNREADY:
                    throw new WritePendingException();

                case CLOSED:
                    throw new EofException("Closed");
            }
            break;
        }
    }
View Full Code Here

                case OPEN:
                    if (!_state.compareAndSet(OutputState.OPEN, OutputState.PENDING))
                        continue;
                    break;
                case CLOSED:
                    throw new EofException("Closed");
                default:
                    throw new IllegalStateException();
            }
            break;
        }
View Full Code Here

            try
            {
                if (_cannotAcceptMoreAppDataToFlush)
                {
                    if (_sslEngine.isOutboundDone())
                        throw new EofException(new ClosedChannelException());
                    return false;
                }

                // We will need a network buffer
                if (_encryptedOutput == null)
View Full Code Here

                _shutdownOut = false;
                return true;
            }
           
            if (isClosed())
                callback.failed(new EofException());
            else
                callback.failed(new WritePendingException());
            return false;
        }
View Full Code Here

        if (LOG.isDebugEnabled())
            LOG.debug("Sending {} {} {} {} last={}", this, stream, info, BufferUtil.toDetailString(content), lastContent);

        if (stream.isClosed() || stream.isReset())
        {
            EofException exception = new EofException("stream closed");
            callback.failed(exception);
            return;
        }

        // info==null content==null lastContent==false          should not happen
View Full Code Here

            try
            {
                if (_cannotAcceptMoreAppDataToFlush)
                {
                    if (_sslEngine.isOutboundDone())
                        throw new EofException(new ClosedChannelException());
                    return false;
                }

                // We will need a network buffer
                if (_encryptedOutput == null)
View Full Code Here

TOP

Related Classes of org.eclipse.jetty.io.EofException

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.