minor reformatting
authoradam <adam@megacz.com>
Sat, 17 Mar 2007 08:57:46 +0000 (08:57 +0000)
committeradam <adam@megacz.com>
Sat, 17 Mar 2007 08:57:46 +0000 (08:57 +0000)
darcs-hash:20070317085746-5007d-9f46e6ab5411e185fdae72597dc08386a83f896c.gz

src/org/ibex/mail/MIME.java

index c8dce2a..c758f7c 100644 (file)
@@ -20,21 +20,21 @@ import java.io.*;
 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) :