public class JslipcPipeURLConnection extends URLConnection
URLConnection
based on a JslipcPipe
.Modifier and Type | Field and Description |
---|---|
protected JslipcPipeClient |
client |
protected InputStream |
in |
protected OutputStream |
out |
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
Constructor and Description |
---|
JslipcPipeURLConnection(URL url,
JslipcPipeClient client)
Create an URL connection based on the given pipe.
|
Modifier and Type | Method and Description |
---|---|
void |
connect() |
protected JslipcRequest |
createRequest()
Creates the request from the given URL.
|
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
protected JslipcPipeClient client
protected InputStream in
protected OutputStream out
public JslipcPipeURLConnection(URL url, JslipcPipeClient client) throws IOException
url
- the URL passed to the super class.client
- the client used to create the streams.IOException
public void connect() throws IOException
connect
in class URLConnection
IOException
public InputStream getInputStream() throws IOException
getInputStream
in class URLConnection
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in class URLConnection
IOException
protected JslipcRequest createRequest() throws IOException
IOException
Copyright © 2014. All Rights Reserved.