- contentTypeEndsWith
Returns true if the specified HTTP response headers contain a Content-Type that
ends with one of the
- extractEncodingFromContentType
Extracts an encoding from the specified Content-Type value usingthe IETF
algorithm [http://ietfrepor
- getAttribute
Extracts an attribute from the specified byte array, starting at the specified
index, using theHTML5
- indexOfSubArray
Finds the first index of the specified sub-array inside the specified array,
starting at the specifi
- isHtml
Returns true if the specified HTTP response headers indicate an HTML response.
- isXml
Returns true if the specified HTTP response headers indicate an XML response.
- matches
Returns true if the byte in the specified byte array at the specified index
matches one of the speci
- read
Attempts to read size bytes from the specified input stream. Note that this
method is not guaranteed
- readAndPrepend
Attempts to read size bytes from the specified input stream and then prepends
the specified prefix t
- skipToAnyOf
Skips ahead to the first occurrence of any of the specified targets within the
specified array, star
- sniffEncodingFromHttpHeaders
Attempts to sniff an encoding from the specified HTTP headers.
- sniffEncodingFromMetaTag
Attempts to sniff an encoding from an HTML meta tag in the specified byte array.