I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
  • jrandom's avatar
    d969dd2d
    2004-12-16 jrandom · d969dd2d
    jrandom authored and zzz's avatar zzz committed
        * Catch another oddball case for a reset connection in the streaming lib.
        * Add a dumpprofile.jsp page, called with ?peer=base64OfPeerHash, which
          dumps the current state of that peer's profile.  Instead of the full
          base64, you can pass in however many characters you have and it will
          return the first match found.
    d969dd2d
    History
    2004-12-16 jrandom
    jrandom authored and zzz's avatar zzz committed
        * Catch another oddball case for a reset connection in the streaming lib.
        * Add a dumpprofile.jsp page, called with ?peer=base64OfPeerHash, which
          dumps the current state of that peer's profile.  Instead of the full
          base64, you can pass in however many characters you have and it will
          return the first match found.
WriterOutputStream.java 511 B
package net.i2p.router.web;

import java.io.IOException;
import java.io.OutputStream;
import java.io.Writer;

/**
 * Treat a writer as an output stream. Quick 'n dirty, none
 * of that "intarnasheeonaleyzayshun" stuff.  So we can treat
 * the jsp's PrintWriter as an OutputStream
 */
public class WriterOutputStream extends OutputStream {
    private Writer _writer;
    
    public WriterOutputStream(Writer writer) { _writer = writer; }
    public void write(int b) throws IOException { _writer.write(b); }
}