# Package org.htmlunit.util

package org.htmlunit.util
Miscellaneous utilities.

- Related Packages
  Package
  Description
  org.htmlunit
  Framework classes (contains the `WebClient` class which is the main entry point).
  org.htmlunit.attachment
  Attachment-related classes.
  org.htmlunit.html
  Classes specific to HTML pages, particularly the `HtmlPage` which represents an HTML document and provides access to its content.
  org.htmlunit.xml
  Classes specific to XML pages.
- Classes
  Class
  Description
  ArrayUtils
  Utility functions not covered by third party libraries.
  Cookie
  A cookie.
  DebuggingWebConnection
  Wrapper around a "real" WebConnection that will use the wrapped web connection to do the real job and save all received responses in the temp directory with an overview page.
  This may be useful at conception time to understand what is "browsed".
  Example:
  EncodingSniffer
  Sniffs encoding settings from HTML, XML or other content.
  FalsifyingWebConnection
  Extension of `WebConnectionWrapper` providing facility methods to deliver something other than what the wrapped connection would deliver.
  HeaderUtils
  KeyDataPair
  INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
  A holder for a key/value pair that represents a file to upload.
  MimeType
  Utility holding information about association between MIME type and file extensions.
  NameValuePair
  A name/value pair.
  OrderedFastHashMap<K,V>
  Simple and efficient linked map or better ordered map implementation to replace the default linked list which is heavy.
  SerializableLock
  Helper because we need a serializable lock object for our serializable classes.
  StringUtils
  String utilities class for utility functions not covered by third party libraries.
  SubnetUtils
  Performs subnet calculations given a network address and a subnet mask.
  UrlUtils
  URL utilities class that makes it easy to create new URLs based off of old URLs without having to assemble or parse them yourself.
  WebClientUtils
  Utility class containing miscellaneous `WebClient`-related methods.
  WebConnectionWrapper
  Provides a convenient implementation of the `WebConnection` interface that can be subclassed by developers wishing to adapt a particular WebConnection.
  WebResponseWrapper
  Provides a convenient implementation of the `WebResponse` interface that can be subclassed by developers wishing to adapt a particular WebResponse.
  XmlUtils
  INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
  Provides facility method to work with XML responses.
  XUserDefinedCharset
  Simple implementation of the 'x-user-defined' `Charset`.