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 © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.