## Deprecated API

Contents

- Deprecated Classes
- Deprecated Fields
- Deprecated Methods

Deprecated Classes
org.codehaus.plexus.util.StringInputStream As of version 1.5.2 this class should no longer be used because it does not properly handle character encoding. Instead, wrap the output from `String.getBytes(String)` into a `ByteArrayInputStream`.
org.codehaus.plexus.util.StringOutputStream As of version 1.5.2 this class should no longer be used because it does not properly handle character encoding. Instead, use `ByteArrayOutputStream.toString(String)`.
org.codehaus.plexus.util.xml.XmlReader use XmlStreamReader

Deprecated Fields
org.codehaus.plexus.util.cli.Commandline.executable Use `Commandline.setExecutable(String)` instead.
org.codehaus.plexus.util.cli.Commandline.OS_NAME Use `Os` class instead.
org.codehaus.plexus.util.cli.Commandline.WINDOWS Use `Os` class instead.

Deprecated Methods
org.codehaus.plexus.util.IOUtil.bufferedCopy(InputStream, OutputStream) Buffering streams is actively harmful! See the class description as to why. Use `IOUtil.copy(InputStream, OutputStream)` instead.
org.codehaus.plexus.util.cli.Commandline.createArgument() Use `Commandline.createArg()` instead
org.codehaus.plexus.util.cli.Commandline.createArgument(boolean) Use `Commandline.createArg(boolean)` instead
org.codehaus.plexus.util.cli.CommandLineUtils.quote(String) Use `StringUtils.quoteAndEscape(String, char, char[], char[], char, boolean)`, `StringUtils.quoteAndEscape(String, char, char[], char, boolean)`, or `StringUtils.quoteAndEscape(String, char)` instead.
org.codehaus.plexus.util.cli.CommandLineUtils.quote(String, boolean) Use `StringUtils.quoteAndEscape(String, char, char[], char[], char, boolean)`, `StringUtils.quoteAndEscape(String, char, char[], char, boolean)`, or `StringUtils.quoteAndEscape(String, char)` instead.
org.codehaus.plexus.util.cli.CommandLineUtils.quote(String, boolean, boolean, boolean) Use `StringUtils.quoteAndEscape(String, char, char[], char[], char, boolean)`, `StringUtils.quoteAndEscape(String, char, char[], char, boolean)`, or `StringUtils.quoteAndEscape(String, char)` instead.
org.codehaus.plexus.util.cli.Commandline.quoteArgument(String) Use `CommandLineUtils.quote(String)` instead.
org.codehaus.plexus.util.cli.Commandline.toString(String[]) Use `CommandLineUtils.toString(String[])` instead.
org.codehaus.plexus.util.cli.Commandline.translateCommandline(String) Use `CommandLineUtils.translateCommandline(String)` instead.