ctype = "application/octet-stream";
}
this.contentType = new ContentType(ctype, headers.get("content-description"), headers.get("content-id"), encoding);
- final long bodylength = fount.getLength() - h.getLength() - 2; /*CRLF*/
// FIXME: this is a horrible, tangled mess.
this.body = new Fountain() {
- public int getNumLines() { return Stream.countLines(getStream()); }
- public long getLength() { return bodylength; }
+ public int getNumLines() { return Stream.countLines(this.getStream()); }
+ public long getLength() { return Stream.countBytes(this.getStream()); }
public Stream getStream() { return transformBodyStream(Headers.skip(fount.getStream())); }
};
this.all =