508 |
*/ |
*/ |
509 |
public InputStream getInputStream() throws IOException |
public InputStream getInputStream() throws IOException |
510 |
{ |
{ |
511 |
return(null); |
// Subclasses for specific protocols override this. |
512 |
|
throw new UnknownServiceException("Protocol " + url.getProtocol() + |
513 |
|
" does not support input."); |
514 |
} |
} |
515 |
|
|
516 |
/** |
/** |
524 |
*/ |
*/ |
525 |
public OutputStream getOutputStream() throws IOException |
public OutputStream getOutputStream() throws IOException |
526 |
{ |
{ |
527 |
return(null); |
// Subclasses for specific protocols override this. |
528 |
|
throw new UnknownServiceException("Protocol " + url.getProtocol() + |
529 |
|
" does not support output."); |
530 |
} |
} |
531 |
|
|
532 |
/** |
/** |
736 |
* @param value The value of the property |
* @param value The value of the property |
737 |
* |
* |
738 |
* @see URLConnection#getRequestProperty(String key) |
* @see URLConnection#getRequestProperty(String key) |
739 |
* @see URLConnection#setRequestProperty(String key, String value) |
* @see URLConnection#addRequestProperty(String key, String value) |
740 |
* |
* |
741 |
* @since 1.4 |
* @since 1.4 |
742 |
*/ |
*/ |