FileDocCategorySizeDatePackage
EOLConvertingOutputStream.javaAPI DocAndroid 1.5 API1381Wed May 06 22:42:46 BST 2009com.android.email.mail.transport

EOLConvertingOutputStream

public class EOLConvertingOutputStream extends FilterOutputStream

Fields Summary
int
lastChar
Constructors Summary
public EOLConvertingOutputStream(OutputStream out)

        super(out);
    
Methods Summary
public voidflush()

        if (lastChar == '\r") {
            super.write('\n");
            lastChar = '\n";
        }
        super.flush();
    
public voidwrite(int oneByte)

        if (oneByte == '\n") {
            if (lastChar != '\r") {
                super.write('\r");
            }
        }
        super.write(oneByte);
        lastChar = oneByte;