public class HTMLSourceStd
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CR_LF |
static java.lang.String |
TWO_HYPHENS |
Constructor and Description |
---|
HTMLSourceStd() |
HTMLSourceStd(boolean proxyToUse,
java.lang.String proxyHost,
int proxyPort,
java.lang.String proxyUser,
java.lang.String proxyPassword) |
Modifier and Type | Method and Description |
---|---|
void |
beginFilePost(java.io.DataOutputStream out,
java.lang.String fileName) |
void |
beginPost(java.net.HttpURLConnection urlConn,
java.lang.String userAgent) |
void |
createNewBoundary() |
void |
endOfPost(java.io.DataOutputStream out) |
java.net.URL |
getURL(java.lang.String urlString) |
java.net.URLConnection |
getURLConnection(java.lang.String urlString) |
java.io.BufferedReader |
getURLReader(java.lang.String urlString) |
java.io.BufferedReader |
getURLReader(java.lang.String urlString,
boolean messageIfNotFound) |
java.io.BufferedReader |
getURLReader(java.lang.String urlString,
java.lang.String userAgent) |
java.io.BufferedReader |
getURLReader(java.lang.String urlString,
java.lang.String userAgent,
boolean messageIfNotFound) |
void |
postParams(java.io.DataOutputStream out,
java.util.Vector<KeyValuePairAlpha> params) |
void |
setCharSet(java.nio.charset.Charset charset) |
void |
setTimeout(int timeout) |
public static final java.lang.String TWO_HYPHENS
public static final java.lang.String CR_LF
public HTMLSourceStd()
public HTMLSourceStd(boolean proxyToUse, java.lang.String proxyHost, int proxyPort, java.lang.String proxyUser, java.lang.String proxyPassword)
public void setCharSet(java.nio.charset.Charset charset)
public void setTimeout(int timeout)
public java.io.BufferedReader getURLReader(java.lang.String urlString) throws java.net.MalformedURLException, java.io.IOException
java.net.MalformedURLException
java.io.IOException
public java.io.BufferedReader getURLReader(java.lang.String urlString, boolean messageIfNotFound) throws java.net.MalformedURLException, java.io.IOException
java.net.MalformedURLException
java.io.IOException
public java.io.BufferedReader getURLReader(java.lang.String urlString, java.lang.String userAgent) throws java.net.MalformedURLException, java.io.IOException
java.net.MalformedURLException
java.io.IOException
public java.io.BufferedReader getURLReader(java.lang.String urlString, java.lang.String userAgent, boolean messageIfNotFound) throws java.net.MalformedURLException, java.io.IOException
java.net.MalformedURLException
java.io.IOException
public java.net.URLConnection getURLConnection(java.lang.String urlString) throws java.net.MalformedURLException, java.io.IOException
java.net.MalformedURLException
java.io.IOException
public java.net.URL getURL(java.lang.String urlString) throws java.net.MalformedURLException
java.net.MalformedURLException
public void createNewBoundary()
public void beginPost(java.net.HttpURLConnection urlConn, java.lang.String userAgent) throws java.net.ProtocolException
java.net.ProtocolException
public void beginFilePost(java.io.DataOutputStream out, java.lang.String fileName) throws java.io.IOException
java.io.IOException
public void postParams(java.io.DataOutputStream out, java.util.Vector<KeyValuePairAlpha> params) throws java.io.IOException
java.io.IOException
public void endOfPost(java.io.DataOutputStream out) throws java.io.IOException
java.io.IOException
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de