Deprecated API
Contents
-
Deprecated ClassesClassDescriptionThis class has been deprecated. When reading XML, users are encouraged to pass the
InputStreamdirectory to theMXParser.setInput(InputStream, String), giving anullencoding to let the parser figure it out. For non xml usages, use the JDKFilesutility methods.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 fromString.getBytes(String)into aByteArrayInputStream.As of version 1.5.2 this class should no longer be used because it does not properly handle character encoding. Instead, useByteArrayOutputStream.toString(String).This class has been deprecated. When writing XML, users can create theXmlStreamWriterinstance directly. For other usages, usingFileshelper methods is recommended.
-
Deprecated FieldsFieldDescriptionUse
Commandline.setExecutable(String)instead.UseOsclass instead.UseOsclass instead.
-
Deprecated MethodsMethodDescriptionUse
Commandline.createArg()insteadUseCommandline.createArg(boolean)insteadUseCommandLineUtils.quote(String)instead.UseCommandLineUtils.toString(String[])instead.UseCommandLineUtils.translateCommandline(String)instead.instead useDAG.getVertices()usejava.nio.files.Files.write(filename, data.getBytes(encoding), StandardOpenOption.APPEND, StandardOpenOption.CREATE)usejava.nio.files.Files.write(filename, data.getBytes(encoding), StandardOpenOption.APPEND, StandardOpenOption.CREATE)Buffering streams is actively harmful! See the class description as to why. UseIOUtil.copy(InputStream, OutputStream)instead.use try-with-resources insteaduse try-with-resources insteaduse try-with-resources insteaduse try-with-resources insteaduse try-with-resources instead