public interface ContentConnection extends StreamConnection
Modifier and Type | Method and Description |
---|---|
String |
getEncoding()
Returns a string describing the encoding of the content which
the resource connected to is providing.
|
long |
getLength()
Returns the length of the content which is being provided.
|
String |
getType()
Returns the type of content that the resource connected to is
providing.
|
openDataInputStream, openInputStream
openDataOutputStream, openOutputStream
close
String getType()
content-type
header field is returned.null
if not known.String getEncoding()
content-encoding
header field is returned.null
if not known.long getLength()
content-length
header field is returned.-1
if the content length
is not known.Copyright (c) 1990, 2012, Oracle and/or its affiliates. All rights reserved.