dap4/d4ts/src/main/java/dap4/d4ts/D4TSServlet.java
@Override
    protected void
    doFavicon(String icopath, DapContext cxt)
            throws IOException
    {
        DapRequest drq = (DapRequest)cxt.get(DapRequest.class);
        String favfile = getResourcePath(drq, icopath);
        if(favfile != null) {
            try (FileInputStream fav = new FileInputStream(favfile);) {
                byte[] content = DapUtil.readbinaryfile(fav);
                OutputStream out = drq.getOutputStream();
                out.write(content);
            }
        }
    }
@Override
    protected void
    doFavicon(String icopath, DapContext cxt)
            throws IOException
    {
        DapRequest drq = (DapRequest)cxt.get(DapRequest.class);
        String favfile = getResourcePath(drq, icopath);
        if(favfile != null) {
            try (FileInputStream fav = new FileInputStream(favfile);) {
                byte[] content = DapUtil.readbinaryfile(fav);
                OutputStream out = drq.getOutputStream();
                out.write(content);
            }
        }
    }
@ Override protected void doFavicon ( String icopath , DapContext cxt ) throws IOException { DapRequest drq = ( DapRequest ) cxt . get ( DapRequest . class ) ; String favfile = getResourcePath ( drq , icopath ) ; if ( favfile != null ) { try ( FileInputStream fav = new FileInputStream ( favfile ) ; ) { byte [ ] content = DapUtil . readbinaryfile ( fav ) ; OutputStream out = drq . getOutputStream ( ) ; out . write ( content ) ; } } }
Capabilities processors
Capabilities processors