public class MIME {
public static class Part extends JSReflection implements Fountain {
- public final Headers headers;
- public final ContentType contentType;
- private final String encoding;
+ public final Headers headers;
+ public final ContentType contentType;
+ private final String encoding;
private final Fountain all;
private final Fountain body;
- public Stream getStream() { return all.getStream(); }
- public int getNumLines() { return all.getNumLines(); }
- public int getLength() { return all.getLength(); }
+ public Stream getStream() { return all.getStream(); }
+ public int getNumLines() { return all.getNumLines(); }
+ public long getLength() { return all.getLength(); }
public Fountain getBody() { return body; }
private class BodyFountain implements Fountain {
public int getNumLines() { return Stream.countLines(getStream()); }
- public int getLength() { return Part.this.getLength() - headers.getLength() - 2; }
+ public long getLength() { return Part.this.getLength() - headers.getLength() - 2 /*FIXME: correct?*/; }
public Stream getStream() {
return /*
"quoted-printable".equals(encoding) ? Encode.QuotedPrintable.decode(body.toString(),false) :