org.eclipse.jetty.io.EofException.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(189)

本文整理了Java中org.eclipse.jetty.io.EofException.<init>()方法的一些代码示例,展示了EofException.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EofException.<init>()方法的具体详情如下:
包路径:org.eclipse.jetty.io.EofException
类名称:EofException
方法名:<init>

EofException.<init>介绍

暂无

代码示例

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

@Override
public int noContent() throws IOException
{
  throw new EofException("Early EOF");
}

代码示例来源:origin: Nextdoor/bender

@Override
public int noContent() throws IOException
{
  throw new EofException("Early EOF");
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

/** Check to make sure that the stream has not been closed */
private void isOpen() throws IOException
{       
  if (_ioException!=null)
    throw new RuntimeIOException(_ioException); 
  
  if (_isClosed)
    throw new EofException("Stream closed");
}

代码示例来源:origin: jenkinsci/winstone

/** Check to make sure that the stream has not been closed */
private void isOpen() throws IOException
{       
  if (_ioException!=null)
    throw new RuntimeIOException(_ioException); 
  
  if (_isClosed)
    throw new EofException("Stream closed");
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

private synchronized int flushBuffer() throws IOException
{
  if (!_endp.isOpen())
    throw new EofException();
  if (_buffer!=null)
    return _endp.flush(_buffer);
  return 0;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

public void flushResponse() throws IOException
{
  try
  {
    commitResponse(Generator.MORE);
    _generator.flushBuffer();
  }
  catch(IOException e)
  {
    throw (e instanceof EofException) ? e:new EofException(e);
  }
}

代码示例来源:origin: org.eclipse.jetty/jetty-websocket

private synchronized int flushBuffer() throws IOException
{
  if (!_endp.isOpen())
    throw new EofException();
  if (_buffer!=null)
    return _endp.flush(_buffer);
  return 0;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

public void flushResponse() throws IOException
{
  try
  {
    commitResponse(Generator.MORE);
    _generator.flushBuffer();
  }
  catch(IOException e)
  {
    throw (e instanceof EofException) ? e:new EofException(e);
  }
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

private synchronized int flushBuffer() throws IOException
{
  if (!_endp.isOpen())
    throw new EofException();
  if (_buffer!=null)
    return _endp.flush(_buffer);
  return 0;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

public void flushResponse() throws IOException
{
  try
  {
    commitResponse(Generator.MORE);
    _generator.flushBuffer();
  }
  catch(IOException e)
  {
    throw (e instanceof EofException) ? e:new EofException(e);
  }
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

public void flushResponse() throws IOException
{
  try
  {
    commitResponse(Generator.MORE);
    _generator.flushBuffer();
  }
  catch(IOException e)
  {
    throw (e instanceof EofException) ? e:new EofException(e);
  }
}

代码示例来源:origin: org.eclipse.jetty/server

public void flushResponse() throws IOException
{
  try
  {
    commitResponse(Generator.MORE);
    _generator.flushBuffer();
  }
  catch(IOException e)
  {
    throw (e instanceof EofException) ? e:new EofException(e);
  }
}

代码示例来源:origin: org.eclipse.jetty/jetty-websocket

private synchronized int flushBuffer() throws IOException
{
  if (!_endp.isOpen())
    throw new EofException();
  if (_buffer!=null && _buffer.hasContent())
    return _endp.flush(_buffer);
  return 0;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

private synchronized int flushBuffer() throws IOException
{
  if (!_endp.isOpen())
    throw new EofException();
  if (_buffer!=null && _buffer.hasContent())
    return _endp.flush(_buffer);
  return 0;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

private synchronized int flushBuffer() throws IOException
{
  if (!_endp.isOpen())
    throw new EofException();
  if (_buffer!=null && _buffer.hasContent())
    return _endp.flush(_buffer);
  return 0;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

@Override
public int read(byte[] b, int off, int len) throws IOException
{
  int l=-1;
  Buffer content=_parser.blockForContent(_connection.getMaxIdleTime());
  if (content!=null)
    l= content.get(b, off, len);
  else if (_connection.isEarlyEOF())
    throw new EofException("early EOF");
  return l;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

@Override
public int read(byte[] b, int off, int len) throws IOException
{
  int l=-1;
  Buffer content=_parser.blockForContent(_connection.getMaxIdleTime());
  if (content!=null)
    l= content.get(b, off, len);
  else if (_connection.isEarlyEOF())
    throw new EofException("early EOF");
  return l;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

@Override
public int read(byte[] b, int off, int len) throws IOException
{
  int l=-1;
  Buffer content=_parser.blockForContent(_connection.getMaxIdleTime());
  if (content!=null)
    l= content.get(b, off, len);
  else if (_connection.isEarlyEOF())
    throw new EofException("early EOF");
  return l;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

@Override
public int read(byte[] b, int off, int len) throws IOException
{
  int l=-1;
  Buffer content=_parser.blockForContent(_connection.getMaxIdleTime());
  if (content!=null)
    l= content.get(b, off, len);
  else if (_connection.isEarlyEOF())
    throw new EofException("early EOF");
  return l;
}

代码示例来源:origin: org.eclipse.jetty/server

@Override
public int read(byte[] b, int off, int len) throws IOException
{
  int l=-1;
  Buffer content=_parser.blockForContent(_connection.getMaxIdleTime());
  if (content!=null)
    l= content.get(b, off, len);
  else if (_connection.isEarlyEOF())
    throw new EofException("early EOF");
  return l;
}

相关文章