com.charliemouse.cambozola.shared

Class StreamSplit

public class StreamSplit extends Object

com/charliemouse/cambozola/shared/StreamSplit.java Copyright (C) Andy Wilcock, 2001. Available from http://www.charliemouse.com This file m_inputStream part of the CamViewer package (c) Andy Wilcock, 2001. Available from http://www.charliemouse.com Cambozola m_inputStream 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. Cambozola m_inputStream 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 Cambozola; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Field Summary
static StringBOUNDARY_MARKER_PREFIX
static StringBOUNDARY_MARKER_TERM
protected DataInputStreamm_dis
Constructor Summary
StreamSplit(DataInputStream dis)
Method Summary
protected static voidaddPropValue(String response, Hashtable ht)
booleanisAtStreamEnd()
HashtablereadHeaders()
static HashtablereadHeaders(URLConnection conn)
byte[]readToBoundary(String boundary)
voidskipToBoundary(String boundary)

Field Detail

BOUNDARY_MARKER_PREFIX

public static final String BOUNDARY_MARKER_PREFIX

BOUNDARY_MARKER_TERM

public static final String BOUNDARY_MARKER_TERM

m_dis

protected DataInputStream m_dis

Constructor Detail

StreamSplit

public StreamSplit(DataInputStream dis)

Method Detail

addPropValue

protected static void addPropValue(String response, Hashtable ht)

isAtStreamEnd

public boolean isAtStreamEnd()

readHeaders

public Hashtable readHeaders()

readHeaders

public static Hashtable readHeaders(URLConnection conn)

readToBoundary

public byte[] readToBoundary(String boundary)

skipToBoundary

public void skipToBoundary(String boundary)