[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Classpathx-javamail] gnu.mail.util.MimeMultipartInputStream.java
From: |
Doug Porter |
Subject: |
[Classpathx-javamail] gnu.mail.util.MimeMultipartInputStream.java |
Date: |
Fri, 19 Sep 2003 03:26:43 -0800 |
/*
* MimeMultipartInputStream.java
* Copyright (C) 2003 Doug Porter
*
* This file is part of GNU JavaMail, a library.
*
* GNU JavaMail is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GNU JavaMail is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
*
* As a special exception, if you link this library with other files to
* produce an executable, this library does not by itself cause the
* resulting executable to be covered by the GNU General Public License.
* This exception does not however invalidate any other reasons why the
* executable file might be covered by the GNU General Public License.
*/
package gnu.mail.util;
import java.io.PushbackInputStream;
import java.io.InputStream;
import java.io.IOException;
import gnu.mail.util.LineInputStream;
/**
* An input stream specifically for MimeMultipart.
* <p>
* This temporary kludge is just until we can eliminate the use of
PushbackInputStream
* from MimeMultipart. This class blends the capabilities of
PushbackInputStream and
* LineInputStream.
* <p>
* As soon as we rewrite MimeMultipart we can use LineInputStream
* or MessageInputStream directly in MimeMultipart.
*
* @author Doug Porter
*/
public class MimeMultipartInputStream
extends PushbackInputStream
{
private LineInputStream lineIn;
/**
* Constructor.
*/
public MimeMultipartInputStream (InputStream in)
{
super (in);
lineIn = new LineInputStream (this);
}
/** Read the next line of text without character encoding.
*
* This method simply calls LineInputStream.readLine.
*
* @return line read.
*/
public String readLine ()
throws IOException {
return lineIn.readLine ();
}
}
--
Doug Porter
address@hidden
--
http://www.fastmail.fm - Sent 0.000002 seconds ago
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Classpathx-javamail] gnu.mail.util.MimeMultipartInputStream.java,
Doug Porter <=