A "Byte" Service
import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;
public class A_Service extends HttpServlet {
public void init() throws ServletException {}
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
byte[] smith=new byte[20];
for (int j=0;j<20;j++)smith[j]=(byte)(j);
smith[7]=(byte)'a';
smith[8]=(byte)'+';
ServletOutputStream sos = response.getOutputStream();
for (int k=0;k<18;k++) sos.write(smith[k]);
sos.flush();
sos.close();
}
public void destroy()
{
}
}