Specifies the mimetype of the content such as
application/json, text/plain, or application/xml.
Parameters:
mimetype - the content mimetype
getByteLength
longgetByteLength()
Returns the length of the content in bytes as
returned by the server. This value is usually not set when reading
from a local source (such as a file or an input stream). The byte
length won't be returned by the server for very large documents for
performance reasons. The byte length can be larger than the
character length if the content contains multi-byte
characters.
Returns:
the content length in bytes
setByteLength
voidsetByteLength(long length)
Specifies the length of the content in bytes or
the UNKNOWN_LENGTH constant if the length of the content is not
known.
Parameters:
length - the content length in bytes
Copyright (c) 2010-2025 Progress
Software Corporation and/or its subsidiaries or affiliates. All
Rights Reserved.