List of usage examples for javax.servlet ServletInputStream available
public int available() throws IOException
From source file:com.orinus.script.safe.jetty.SRequest.java
public byte[] getRequestData() { byte[] tag = new byte[0]; try {/* ww w . j a v a 2s. co m*/ ServletInputStream sis = req.getInputStream(); tag = new byte[sis.available()]; sis.read(tag); } catch (Exception e) { } return tag; }