Repository: groovy Updated Branches: refs/heads/GROOVY_2_6_X a2a6c0122 -> 21f0e1e0d
remove long time deprecated and moved DGM methods Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/21f0e1e0 Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/21f0e1e0 Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/21f0e1e0 Branch: refs/heads/GROOVY_2_6_X Commit: 21f0e1e0d29e218e2af52c8c6e2800b555445250 Parents: a2a6c01 Author: paulk <[email protected]> Authored: Mon Mar 26 13:30:23 2018 +1000 Committer: paulk <[email protected]> Committed: Mon Mar 26 13:31:46 2018 +1000 ---------------------------------------------------------------------- .../groovy/runtime/DefaultGroovyMethods.java | 1935 ------------------ 1 file changed, 1935 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/21f0e1e0/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java b/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java index fedaa29..d9a2b59 100644 --- a/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java +++ b/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java @@ -17327,1941 +17327,6 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport { return InvokerHelper.getMetaClass(self).hasProperty(self, name); } - @Deprecated - public static boolean asBoolean(CharSequence string) { - return StringGroovyMethods.asBoolean(string); - } - - @Deprecated - public static boolean asBoolean(Matcher matcher) { - return StringGroovyMethods.asBoolean(matcher); - } - - @Deprecated - public static <T> T asType(CharSequence self, Class<T> c) { - return StringGroovyMethods.asType(self, c); - } - - @Deprecated - @SuppressWarnings("unchecked") - public static <T> T asType(GString self, Class<T> c) { - return StringGroovyMethods.asType(self, c); - } - - @Deprecated - @SuppressWarnings("unchecked") - public static <T> T asType(String self, Class<T> c) { - return StringGroovyMethods.asType(self, c); - } - - @Deprecated - public static Pattern bitwiseNegate(CharSequence self) { - return StringGroovyMethods.bitwiseNegate(self); - } - - @Deprecated - public static Pattern bitwiseNegate(String self) { - return StringGroovyMethods.bitwiseNegate(self); - } - - @Deprecated - public static CharSequence capitalize(CharSequence self) { - return StringGroovyMethods.capitalize(self); - } - - @Deprecated - public static String capitalize(String self) { - return StringGroovyMethods.capitalize(self); - } - - @Deprecated - public static CharSequence center(CharSequence self, Number numberOfChars) { - return StringGroovyMethods.center(self, numberOfChars); - } - - @Deprecated - public static CharSequence center(CharSequence self, Number numberOfChars, CharSequence padding) { - return StringGroovyMethods.center(self, numberOfChars, padding); - } - - @Deprecated - public static String center(String self, Number numberOfChars) { - return StringGroovyMethods.center(self, numberOfChars); - } - - @Deprecated - public static String center(String self, Number numberOfChars, String padding) { - return StringGroovyMethods.center(self, numberOfChars, padding); - } - - @Deprecated - public static boolean contains(CharSequence self, CharSequence text) { - return StringGroovyMethods.contains(self, text); - } - - @Deprecated - public static boolean contains(String self, String text) { - return StringGroovyMethods.contains(self, text); - } - - @Deprecated - public static int count(CharSequence self, CharSequence text) { - return StringGroovyMethods.count(self, text); - } - - @Deprecated - public static int count(String self, String text) { - return StringGroovyMethods.count(self, text); - } - - @Deprecated - protected static StringBufferWriter createStringBufferWriter(StringBuffer self) { - return new StringBufferWriter(self); - } - - @Deprecated - protected static StringWriter createStringWriter(String self) { - StringWriter answer = new StringWriter(); - answer.write(self); - return answer; - } - - @Deprecated - public static CharSequence denormalize(final CharSequence self) { - return StringGroovyMethods.denormalize(self); - } - - @Deprecated - public static String denormalize(final String self) { - return StringGroovyMethods.denormalize(self); - } - - @Deprecated - public static CharSequence - drop(CharSequence self, int num) { - return StringGroovyMethods.drop(self, num); - } - - @Deprecated - public static <T> T eachLine(CharSequence self, Closure<T> closure) throws IOException { - return StringGroovyMethods.eachLine(self, closure); - } - - @Deprecated - public static <T> T eachLine(CharSequence self, int firstLine, Closure<T> closure) throws IOException { - return StringGroovyMethods.eachLine(self, firstLine, closure); - } - - @Deprecated - public static <T> T eachLine(String self, Closure<T> closure) throws IOException { - return StringGroovyMethods.eachLine(self, closure); - } - - @Deprecated - public static <T> T eachLine(String self, int firstLine, Closure<T> closure) throws IOException { - return StringGroovyMethods.eachLine(self, firstLine, closure); - } - - @Deprecated - public static String eachMatch(CharSequence self, CharSequence regex, Closure closure) { - return (String) StringGroovyMethods.eachMatch(self, regex, closure); - } - - @Deprecated - public static String eachMatch(CharSequence self, Pattern pattern, Closure closure) { - return (String) StringGroovyMethods.eachMatch(self, pattern, closure); - } - - @Deprecated - public static String eachMatch(String self, Pattern pattern, Closure closure) { - return StringGroovyMethods.eachMatch(self, pattern, closure); - } - - @Deprecated - public static String eachMatch(String self, String regex, Closure closure) { - return StringGroovyMethods.eachMatch(self, regex, closure); - } - - @Deprecated - public static CharSequence expand(CharSequence self) { - return StringGroovyMethods.expand(self); - } - - @Deprecated - public static CharSequence expand(CharSequence self, int tabStop) { - return StringGroovyMethods.expand(self, tabStop); - } - - @Deprecated - public static String expand(String self) { - return StringGroovyMethods.expand(self); - } - - @Deprecated - public static String expand(String self, int tabStop) { - return StringGroovyMethods.expand(self, tabStop); - } - - @Deprecated - public static CharSequence expandLine(CharSequence self, int tabStop) { - return StringGroovyMethods.expandLine(self, tabStop); - } - - @Deprecated - public static String expandLine(String self, int tabStop) { - return StringGroovyMethods.expandLine(self, tabStop); - } - - @Deprecated - public static CharSequence find(CharSequence self, CharSequence regex) { - return StringGroovyMethods.find(self, regex); - } - - @Deprecated - public static CharSequence find(CharSequence self, CharSequence regex, Closure closure) { - return StringGroovyMethods.find(self, regex, closure); - } - - @Deprecated - public static CharSequence find(CharSequence self, Pattern pattern) { - return StringGroovyMethods.find(self, pattern); - } - - @Deprecated - public static CharSequence find(CharSequence self, Pattern pattern, Closure closure) { - return StringGroovyMethods.find(self, pattern, closure); - } - - @Deprecated - public static String find(String self, Pattern pattern) { - return StringGroovyMethods.find(self, pattern); - } - - @Deprecated - public static String find(String self, Pattern pattern, Closure closure) { - return StringGroovyMethods.find(self, pattern, closure); - } - - @Deprecated - public static String find(String self, String regex) { - return StringGroovyMethods.find(self, regex); - } - - @Deprecated - public static String find(String self, String regex, Closure closure) { - return StringGroovyMethods.find(self, regex, closure); - } - - @Deprecated - public static List<String> findAll(CharSequence self, CharSequence regex) { - return StringGroovyMethods.findAll(self, regex); - } - - @Deprecated - public static <T> List<T> findAll(CharSequence self, CharSequence regex, Closure<T> closure) { - return StringGroovyMethods.findAll(self, regex, closure); - } - - @Deprecated - public static List<String> findAll(CharSequence self, Pattern pattern) { - return StringGroovyMethods.findAll(self, pattern); - } - - @Deprecated - public static <T> List<T> findAll(CharSequence self, Pattern pattern, Closure<T> closure) { - return StringGroovyMethods.findAll(self, pattern, closure); - } - - @Deprecated - public static List<String> findAll(String self, Pattern pattern) { - return StringGroovyMethods.findAll(self, pattern); - } - - @Deprecated - public static <T> List<T> findAll(String self, Pattern pattern, Closure<T> closure) { - return StringGroovyMethods.findAll(self, pattern, closure); - } - - @Deprecated - public static List<String> findAll(String self, String regex) { - return StringGroovyMethods.findAll(self, regex); - } - - @Deprecated - public static <T> List<T> findAll(String self, String regex, Closure<T> closure) { - return StringGroovyMethods.findAll(self, regex, closure); - } - - @Deprecated - public static CharSequence getAt(CharSequence self, Collection indices) { - return StringGroovyMethods.getAt(self, indices); - } - - @Deprecated - public static CharSequence getAt(CharSequence text, EmptyRange range) { - return StringGroovyMethods.getAt(text, range); - } - - @Deprecated - public static CharSequence getAt(CharSequence text, int index) { - return StringGroovyMethods.getAt(text, index); - } - - @Deprecated - public static CharSequence getAt(CharSequence text, IntRange range) { - return StringGroovyMethods.getAt(text, range); - } - - @Deprecated - public static CharSequence getAt(CharSequence text, Range range) { - return StringGroovyMethods.getAt(text, range); - } - - @Deprecated - public static List getAt(Matcher self, Collection indices) { - return StringGroovyMethods.getAt(self, indices); - } - - @Deprecated - public static Object getAt(Matcher matcher, int idx) { - return StringGroovyMethods.getAt(matcher, idx); - } - - @Deprecated - public static String getAt(String self, Collection indices) { - return StringGroovyMethods.getAt(self, indices); - } - - @Deprecated - public static String getAt(String text, EmptyRange range) { - return StringGroovyMethods.getAt(text, range); - } - - @Deprecated - public static String getAt(String text, int index) { - return StringGroovyMethods.getAt(text, index); - } - - @Deprecated - public static String getAt(String text, IntRange range) { - return StringGroovyMethods.getAt(text, range); - } - - @Deprecated - public static String getAt(String text, Range range) { - return StringGroovyMethods.getAt(text, range); - } - - @Deprecated - public static char[] getChars(CharSequence self) { - return StringGroovyMethods.getChars(self); - } - - @Deprecated - public static char[] getChars(String self) { - return StringGroovyMethods.getChars(self); - } - - @Deprecated - public static int getCount(Matcher matcher) { - return StringGroovyMethods.getCount(matcher); - } - - @Deprecated - public static boolean hasGroup(Matcher matcher) { - return StringGroovyMethods.hasGroup(matcher); - } - - @Deprecated - public static boolean isAllWhitespace(CharSequence self) { - return StringGroovyMethods.isAllWhitespace(self); - } - - @Deprecated - public static boolean isAllWhitespace(String self) { - return StringGroovyMethods.isAllWhitespace(self); - } - - @Deprecated - public static boolean isBigDecimal(CharSequence self) { - return StringGroovyMethods.isBigDecimal(self); - } - - @Deprecated - public static boolean isBigDecimal(String self) { - return StringGroovyMethods.isBigDecimal(self); - } - - @Deprecated - public static boolean isBigInteger(CharSequence self) { - return StringGroovyMethods.isBigInteger(self); - } - - @Deprecated - public static boolean isBigInteger(String self) { - return StringGroovyMethods.isBigInteger(self); - } - - @Deprecated - public static boolean isCase(CharSequence caseValue, Object switchValue) { - return StringGroovyMethods.isCase(caseValue, switchValue); - } - - @Deprecated - public static boolean isCase(GString caseValue, Object switchValue) { - return StringGroovyMethods.isCase(caseValue, switchValue); - } - - @Deprecated - public static boolean isCase(Pattern caseValue, Object switchValue) { - return StringGroovyMethods.isCase(caseValue, switchValue); - } - - @Deprecated - public static boolean isCase(String caseValue, Object switchValue) { - return StringGroovyMethods.isCase(caseValue, switchValue); - } - - @Deprecated - public static boolean isDouble(CharSequence self) { - return StringGroovyMethods.isDouble(self); - } - - @Deprecated - public static boolean isDouble(String self) { - return StringGroovyMethods.isDouble(self); - } - - @Deprecated - public static boolean isFloat(CharSequence self) { - return StringGroovyMethods.isFloat(self); - } - - @Deprecated - public static boolean isFloat(String self) { - return StringGroovyMethods.isFloat(self); - } - - @Deprecated - public static boolean isInteger(CharSequence self) { - return StringGroovyMethods.isInteger(self); - } - - @Deprecated - public static boolean isInteger(String self) { - return StringGroovyMethods.isInteger(self); - } - - @Deprecated - public static boolean isLong(CharSequence self) { - return StringGroovyMethods.isLong(self); - } - - @Deprecated - public static boolean isLong(String self) { - return StringGroovyMethods.isLong(self); - } - - @Deprecated - public static boolean isNumber(CharSequence self) { - return StringGroovyMethods.isNumber(self); - } - - @Deprecated - public static boolean isNumber(String self) { - return StringGroovyMethods.isNumber(self); - } - - @Deprecated - public static Iterator iterator(final Matcher matcher) { - return StringGroovyMethods.iterator(matcher); - } - - @Deprecated - public static StringBuilder leftShift(CharSequence self, Object value) { - return StringGroovyMethods.leftShift(self, value); - } - - @Deprecated - public static StringBuffer leftShift(String self, Object value) { - return StringGroovyMethods.leftShift(self, value); - } - - @Deprecated - public static StringBuffer leftShift(StringBuffer self, Object value) { - return StringGroovyMethods.leftShift(self, value); - } - - @Deprecated - public static StringBuilder leftShift(StringBuilder self, Object value) { - return StringGroovyMethods.leftShift(self, value); - } - - @Deprecated - public static boolean matches(CharSequence self, Pattern pattern) { - return StringGroovyMethods.matches(self, pattern); - } - - @Deprecated - public static boolean matches(String self, Pattern pattern) { - return StringGroovyMethods.matches(self, pattern); - } - - @Deprecated - public static CharSequence minus(CharSequence self, Object target) { - return StringGroovyMethods.minus(self, target); - } - - @Deprecated - public static String minus(String self, Object target) { - return StringGroovyMethods.minus(self, target); - } - - @Deprecated - public static CharSequence multiply(CharSequence self, Number factor) { - return StringGroovyMethods.multiply(self, factor); - } - - @Deprecated - public static String multiply(String self, Number factor) { - return StringGroovyMethods.multiply(self, factor); - } - - @Deprecated - public static CharSequence next(CharSequence self) { - return StringGroovyMethods.next(self); - } - - @Deprecated - public static String next(String self) { - return StringGroovyMethods.next(self); - } - - @Deprecated - public static CharSequence normalize(final CharSequence self) { - return StringGroovyMethods.normalize(self); - } - - @Deprecated - public static String normalize(final String self) { - return StringGroovyMethods.normalize(self); - } - - @Deprecated - public static CharSequence padLeft(CharSequence self, Number numberOfChars) { - return StringGroovyMethods.padLeft(self, numberOfChars); - } - - @Deprecated - public static CharSequence padLeft(CharSequence self, Number numberOfChars, CharSequence padding) { - return StringGroovyMethods.padLeft(self, numberOfChars, padding); - } - - @Deprecated - public static String padLeft(String self, Number numberOfChars) { - return StringGroovyMethods.padLeft(self, numberOfChars); - } - - @Deprecated - public static String padLeft(String self, Number numberOfChars, String padding) { - return StringGroovyMethods.padLeft(self, numberOfChars, padding); - } - - @Deprecated - public static CharSequence padRight(CharSequence self, Number numberOfChars) { - return StringGroovyMethods.padRight(self, numberOfChars); - } - - @Deprecated - public static CharSequence padRight(CharSequence self, Number numberOfChars, CharSequence padding) { - return StringGroovyMethods.padRight(self, numberOfChars, padding); - } - - @Deprecated - public static String padRight(String self, Number numberOfChars) { - return StringGroovyMethods.padRight(self, numberOfChars); - } - - @Deprecated - public static String padRight(String self, Number numberOfChars, String padding) { - return StringGroovyMethods.padRight(self, numberOfChars, padding); - } - - @Deprecated - public static CharSequence plus(CharSequence left, Object value) { - return StringGroovyMethods.plus(left, value); - } - - @Deprecated - public static String plus(Number value, String right) { - return StringGroovyMethods.plus(value, right); - } - - @Deprecated - public static String plus(String left, Object value) { - return StringGroovyMethods.plus(left, value); - } - - @Deprecated - public static String plus(StringBuffer left, String value) { - return StringGroovyMethods.plus(left, value); - } - - @Deprecated - public static CharSequence previous(CharSequence self) { - return StringGroovyMethods.previous(self); - } - - @Deprecated - public static String previous(String self) { - return StringGroovyMethods.previous(self); - } - - @Deprecated - public static void putAt(StringBuffer self, EmptyRange range, Object value) { - StringGroovyMethods.putAt(self, range, value); - } - - @Deprecated - public static void putAt(StringBuffer self, IntRange range, Object value) { - StringGroovyMethods.putAt(self, range, value); - } - - @Deprecated - public static List<String> readLines(CharSequence self) throws IOException { - return StringGroovyMethods.readLines(self); - } - - @Deprecated - public static List<String> readLines(String self) throws IOException { - return StringGroovyMethods.readLines(self); - } - - @Deprecated - public static CharSequence replaceAll(final CharSequence self, final CharSequence regex, final CharSequence replacement) { - return StringGroovyMethods.replaceAll(self, regex, replacement); - } - - @Deprecated - public static CharSequence replaceAll(final CharSequence self, final CharSequence regex, final Closure closure) { - return StringGroovyMethods.replaceAll(self, regex, closure); - } - - @Deprecated - public static CharSequence replaceAll(CharSequence self, Pattern pattern, CharSequence replacement) { - return StringGroovyMethods.replaceAll(self, pattern, replacement); - } - - @Deprecated - public static String replaceAll(final CharSequence self, final Pattern pattern, final Closure closure) { - return StringGroovyMethods.replaceAll(self, pattern, closure); - } - - @Deprecated - public static String replaceAll(final String self, final Pattern pattern, final Closure closure) { - return StringGroovyMethods.replaceAll(self, pattern, closure); - } - - @Deprecated - public static String replaceAll(String self, Pattern pattern, String replacement) { - return StringGroovyMethods.replaceAll(self, pattern, replacement); - } - - @Deprecated - public static String replaceAll(final String self, final String regex, final Closure closure) { - return StringGroovyMethods.replaceAll(self, regex, closure); - } - - @Deprecated - public static String replaceFirst(final CharSequence self, final CharSequence regex, final CharSequence replacement) { - return StringGroovyMethods.replaceFirst(self, regex, replacement); - } - - @Deprecated - public static String replaceFirst(final CharSequence self, final CharSequence regex, final Closure closure) { - return StringGroovyMethods.replaceFirst(self, regex, closure); - } - - @Deprecated - public static CharSequence replaceFirst(CharSequence self, Pattern pattern, CharSequence replacement) { - return StringGroovyMethods.replaceFirst(self, pattern, replacement); - } - - @Deprecated - public static String replaceFirst(final CharSequence self, final Pattern pattern, final Closure closure) { - return StringGroovyMethods.replaceFirst(self, pattern, closure); - } - - @Deprecated - public static String replaceFirst(final String self, final Pattern pattern, final Closure closure) { - return StringGroovyMethods.replaceFirst(self, pattern, closure); - } - - @Deprecated - public static String replaceFirst(String self, Pattern pattern, String replacement) { - return StringGroovyMethods.replaceFirst(self, pattern, replacement); - } - - @Deprecated - public static String replaceFirst(final String self, final String regex, final Closure closure) { - return StringGroovyMethods.replaceFirst(self, regex, closure); - } - - @Deprecated - public static CharSequence reverse(CharSequence self) { - return StringGroovyMethods.reverse(self); - } - - @Deprecated - public static String reverse(String self) { - return StringGroovyMethods.reverse(self); - } - - @Deprecated - public static void setIndex(Matcher matcher, int idx) { - StringGroovyMethods.setIndex(matcher, idx); - } - - @Deprecated - public static int size(CharSequence text) { - return StringGroovyMethods.size(text); - } - - @Deprecated - public static long size(Matcher self) { - return StringGroovyMethods.size(self); - } - - @Deprecated - public static int size(String text) { - return StringGroovyMethods.size(text); - } - - @Deprecated - public static int size(StringBuffer buffer) { - return StringGroovyMethods.size(buffer); - } - - @Deprecated - public static CharSequence[] split(CharSequence self) { - return StringGroovyMethods.split(self); - } - - @Deprecated - public static String[] split(GString self) { - return StringGroovyMethods.split(self); - } - - @Deprecated - public static String[] split(String self) { - return StringGroovyMethods.split(self); - } - - @Deprecated - public static <T> T splitEachLine(CharSequence self, CharSequence regex, Closure<T> closure) throws IOException { - return StringGroovyMethods.splitEachLine(self, regex, closure); - } - - @Deprecated - public static <T> T splitEachLine(CharSequence self, Pattern pattern, Closure<T> closure) throws IOException { - return StringGroovyMethods.splitEachLine(self, pattern, closure); - } - - @Deprecated - public static <T> T splitEachLine(String self, Pattern pattern, Closure<T> closure) throws IOException { - return StringGroovyMethods.splitEachLine(self, pattern, closure); - } - - @Deprecated - public static <T> T splitEachLine(String self, String regex, Closure<T> closure) throws IOException { - return StringGroovyMethods.splitEachLine(self, regex, closure); - } - - @Deprecated - public static CharSequence stripIndent(CharSequence self) { - return StringGroovyMethods.stripIndent(self); - } - - @Deprecated - public static CharSequence stripIndent(CharSequence self, int numChars) { - return StringGroovyMethods.stripIndent(self, numChars); - } - - @Deprecated - public static String stripIndent(String self) { - return StringGroovyMethods.stripIndent(self); - } - - @Deprecated - public static String stripIndent(String self, int numChars) { - return StringGroovyMethods.stripIndent(self, numChars); - } - - @Deprecated - public static CharSequence stripMargin(CharSequence self) { - return StringGroovyMethods.stripMargin(self); - } - - @Deprecated - public static CharSequence stripMargin(CharSequence self, char marginChar) { - return StringGroovyMethods.stripMargin(self, marginChar); - } - - @Deprecated - public static String stripMargin(CharSequence self, CharSequence marginChar) { - return StringGroovyMethods.stripMargin(self, marginChar); - } - - @Deprecated - public static String stripMargin(String self) { - return StringGroovyMethods.stripMargin(self); - } - - @Deprecated - public static String stripMargin(String self, char marginChar) { - return StringGroovyMethods.stripMargin(self, marginChar); - } - - @Deprecated - public static String stripMargin(String self, String marginChar) { - return StringGroovyMethods.stripMargin(self, marginChar); - } - - @Deprecated - public static BigDecimal toBigDecimal(CharSequence self) { - return StringGroovyMethods.toBigDecimal(self); - } - - @Deprecated - public static BigDecimal toBigDecimal(String self) { - return StringGroovyMethods.toBigDecimal(self); - } - - @Deprecated - public static BigInteger toBigInteger(CharSequence self) { - return StringGroovyMethods.toBigInteger(self); - } - - @Deprecated - public static BigInteger toBigInteger(String self) { - return StringGroovyMethods.toBigInteger(self); - } - - @Deprecated - public static Boolean toBoolean(String self) { - return StringGroovyMethods.toBoolean(self); - } - - @Deprecated - public static Character toCharacter(String self) { - return StringGroovyMethods.toCharacter(self); - } - - @Deprecated - public static Double toDouble(CharSequence self) { - return StringGroovyMethods.toDouble(self); - } - - @Deprecated - public static Double toDouble(String self) { - return StringGroovyMethods.toDouble(self); - } - - @Deprecated - public static Float toFloat(CharSequence self) { - return StringGroovyMethods.toFloat(self); - } - - @Deprecated - public static Float toFloat(String self) { - return StringGroovyMethods.toFloat(self); - } - - @Deprecated - public static Integer toInteger(CharSequence self) { - return StringGroovyMethods.toInteger(self); - } - - @Deprecated - public static Integer toInteger(String self) { - return StringGroovyMethods.toInteger(self); - } - - @Deprecated - public static List<String> tokenize(CharSequence self) { - return StringGroovyMethods.tokenize(self); - } - - @Deprecated - public static List<String> tokenize(CharSequence self, Character token) { - return StringGroovyMethods.tokenize(self, token); - } - - @Deprecated - public static List<String> tokenize(CharSequence self, CharSequence token) { - return StringGroovyMethods.tokenize(self, token); - } - - @Deprecated - @SuppressWarnings("unchecked") - public static List<String> tokenize(String self) { - return StringGroovyMethods.tokenize(self); - } - - @Deprecated - public static List<String> tokenize(String self, Character token) { - return StringGroovyMethods.tokenize(self, token); - } - - @Deprecated - @SuppressWarnings("unchecked") - public static List<String> tokenize(String self, String token) { - return StringGroovyMethods.tokenize(self, token); - } - - @Deprecated - public static List<String> toList(CharSequence self) { - return StringGroovyMethods.toList(self); - } - - @Deprecated - public static List<String> toList(String self) { - return StringGroovyMethods.toList(self); - } - - @Deprecated - public static Long toLong(CharSequence self) { - return StringGroovyMethods.toLong(self); - } - - @Deprecated - public static Long toLong(String self) { - return StringGroovyMethods.toLong(self); - } - - @Deprecated - public static Set<String> toSet(CharSequence self) { - return StringGroovyMethods.toSet(self); - } - - @Deprecated - public static Set<String> toSet(String self) { - return StringGroovyMethods.toSet(self); - } - - @Deprecated - public static Short toShort(CharSequence self) { - return StringGroovyMethods.toShort(self); - } - - @Deprecated - public static Short toShort(String self) { - return StringGroovyMethods.toShort(self); - } - - @Deprecated - public static URI toURI(CharSequence self) throws URISyntaxException { - return ResourceGroovyMethods.toURI(self); - } - - @Deprecated - public static URI toURI(String self) throws URISyntaxException { - return ResourceGroovyMethods.toURI(self); - } - - @Deprecated - public static URL toURL(CharSequence self) throws MalformedURLException { - return ResourceGroovyMethods.toURL(self); - } - - @Deprecated - public static URL toURL(String self) throws MalformedURLException { - return ResourceGroovyMethods.toURL(self); - } - - @Deprecated - public static CharSequence tr(final CharSequence self, CharSequence sourceSet, CharSequence replacementSet) throws ClassNotFoundException { - return StringGroovyMethods.tr(self, sourceSet, replacementSet); - } - - @Deprecated - public static String tr(final String self, String sourceSet, String replacementSet) throws ClassNotFoundException { - return StringGroovyMethods.tr(self, sourceSet, replacementSet); - } - - @Deprecated - public static CharSequence unexpand(CharSequence self) { - return StringGroovyMethods.unexpand(self); - } - - @Deprecated - public static CharSequence unexpand(CharSequence self, int tabStop) { - return StringGroovyMethods.unexpand(self, tabStop); - } - - @Deprecated - public static String unexpand(String self) { - return StringGroovyMethods.unexpand(self); - } - - @Deprecated - public static String unexpand(String self, int tabStop) { - return StringGroovyMethods.unexpand(self, tabStop); - } - - @Deprecated - public static CharSequence unexpandLine(CharSequence self, int tabStop) { - return StringGroovyMethods.unexpandLine(self, tabStop); - } - - @Deprecated - public static String unexpandLine(String self, int tabStop) { - return StringGroovyMethods.unexpandLine(self, tabStop); - } - - @Deprecated - public static Process execute(final String self) throws IOException { - return ProcessGroovyMethods.execute(self); - } - - @Deprecated - public static Process execute(final String self, final String[] envp, final File dir) throws IOException { - return ProcessGroovyMethods.execute(self, envp, dir); - } - - @Deprecated - public static Process execute(final String self, final List envp, final File dir) throws IOException { - return ProcessGroovyMethods.execute(self, envp, dir); - } - - @Deprecated - public static Process execute(final String[] commandArray) throws IOException { - return ProcessGroovyMethods.execute(commandArray); - } - - @Deprecated - public static Process execute(final String[] commandArray, final String[] envp, final File dir) throws IOException { - return ProcessGroovyMethods.execute(commandArray, envp, dir); - } - - @Deprecated - public static Process execute(final String[] commandArray, final List envp, final File dir) throws IOException { - return ProcessGroovyMethods.execute(commandArray, envp, dir); - } - - @Deprecated - public static Process execute(final List commands) throws IOException { - return ProcessGroovyMethods.execute(commands); - } - - @Deprecated - public static Process execute(final List commands, final String[] envp, final File dir) throws IOException { - return ProcessGroovyMethods.execute(commands, envp, dir); - } - - @Deprecated - public static Process execute(final List commands, final List envp, final File dir) throws IOException { - return ProcessGroovyMethods.execute(commands, envp, dir); - } - - @Deprecated - public static <T> T withStreams(Socket socket, Closure<T> closure) throws IOException { - return SocketGroovyMethods.withStreams(socket, closure); - } - - @Deprecated - public static <T> T withObjectStreams(Socket socket, Closure<T> closure) throws IOException { - return SocketGroovyMethods.withObjectStreams(socket, closure); - } - - @Deprecated - public static Writer leftShift(Socket self, Object value) throws IOException { - return SocketGroovyMethods.leftShift(self, value); - } - - @Deprecated - public static OutputStream leftShift(Socket self, byte[] value) throws IOException { - return SocketGroovyMethods.leftShift(self, value); - } - - @Deprecated - public static Socket accept(ServerSocket serverSocket, final Closure closure) throws IOException { - return SocketGroovyMethods.accept(serverSocket, closure); - } - - @Deprecated - public static Socket accept(ServerSocket serverSocket, final boolean runInANewThread, - final Closure closure) throws IOException { - return SocketGroovyMethods.accept(serverSocket, runInANewThread, closure); - } - - @Deprecated - public static long size(File self) { - return ResourceGroovyMethods.size(self); - } - - @Deprecated - public static Writer leftShift(Writer self, Object value) throws IOException { - return IOGroovyMethods.leftShift(self, value); - } - - @Deprecated - public static void write(Writer self, Writable writable) throws IOException { - IOGroovyMethods.write(self, writable); - } - - @Deprecated - public static Writer leftShift(OutputStream self, Object value) throws IOException { - return IOGroovyMethods.leftShift(self, value); - } - - @Deprecated - public static void leftShift(ObjectOutputStream self, Object value) throws IOException { - IOGroovyMethods.leftShift(self, value); - } - - @Deprecated - public static OutputStream leftShift(OutputStream self, InputStream in) throws IOException { - return IOGroovyMethods.leftShift(self, in); - } - - @Deprecated - public static OutputStream leftShift(OutputStream self, byte[] value) throws IOException { - return IOGroovyMethods.leftShift(self, value); - } - - @Deprecated - public static ObjectOutputStream newObjectOutputStream(File file) throws IOException { - return ResourceGroovyMethods.newObjectOutputStream(file); - } - - @Deprecated - public static ObjectOutputStream newObjectOutputStream(OutputStream outputStream) throws IOException { - return IOGroovyMethods.newObjectOutputStream(outputStream); - } - - @Deprecated - public static <T> T withObjectOutputStream(File file, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.withObjectOutputStream(file, closure); - } - - @Deprecated - public static <T> T withObjectOutputStream(OutputStream outputStream, Closure<T> closure) throws IOException { - return IOGroovyMethods.withObjectOutputStream(outputStream, closure); - } - - @Deprecated - public static ObjectInputStream newObjectInputStream(File file) throws IOException { - return ResourceGroovyMethods.newObjectInputStream(file); - } - - @Deprecated - public static ObjectInputStream newObjectInputStream(InputStream inputStream) throws IOException { - return IOGroovyMethods.newObjectInputStream(inputStream); - } - - @Deprecated - public static ObjectInputStream newObjectInputStream(InputStream inputStream, final ClassLoader classLoader) throws IOException { - return IOGroovyMethods.newObjectInputStream(inputStream, classLoader); - } - - @Deprecated - public static ObjectInputStream newObjectInputStream(File file, final ClassLoader classLoader) throws IOException { - return ResourceGroovyMethods.newObjectInputStream(file, classLoader); - } - - @Deprecated - public static void eachObject(File self, Closure closure) throws IOException, ClassNotFoundException { - ResourceGroovyMethods.eachObject(self, closure); - } - - @Deprecated - public static void eachObject(ObjectInputStream ois, Closure closure) throws IOException, ClassNotFoundException { - IOGroovyMethods.eachObject(ois, closure); - } - - @Deprecated - public static <T> T withObjectInputStream(File file, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.withObjectInputStream(file, closure); - } - - @Deprecated - public static <T> T withObjectInputStream(File file, ClassLoader classLoader, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.withObjectInputStream(file, classLoader, closure); - } - - @Deprecated - public static <T> T withObjectInputStream(InputStream inputStream, Closure<T> closure) throws IOException { - return IOGroovyMethods.withObjectInputStream(inputStream, closure); - } - - @Deprecated - public static <T> T withObjectInputStream(InputStream inputStream, ClassLoader classLoader, Closure<T> closure) throws IOException { - return IOGroovyMethods.withObjectInputStream(inputStream, classLoader, closure); - } - - @Deprecated - public static <T> T eachLine(File self, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.eachLine(self, closure); - } - - @Deprecated - public static <T> T eachLine(File self, String charset, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.eachLine(self, charset, closure); - } - - @Deprecated - public static <T> T eachLine(File self, int firstLine, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.eachLine(self, firstLine, closure); - } - - @Deprecated - public static <T> T eachLine(File self, String charset, int firstLine, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.eachLine(self, charset, firstLine, closure); - } - - @Deprecated - public static <T> T eachLine(InputStream stream, String charset, Closure<T> closure) throws IOException { - return IOGroovyMethods.eachLine(stream, charset, closure); - } - - @Deprecated - public static <T> T eachLine(InputStream stream, String charset, int firstLine, Closure<T> closure) throws IOException { - return IOGroovyMethods.eachLine(stream, charset, firstLine, closure); - } - - @Deprecated - public static <T> T eachLine(InputStream stream, Closure<T> closure) throws IOException { - return IOGroovyMethods.eachLine(stream, closure); - } - - @Deprecated - public static <T> T eachLine(InputStream stream, int firstLine, Closure<T> closure) throws IOException { - return IOGroovyMethods.eachLine(stream, firstLine, closure); - } - - @Deprecated - public static <T> T eachLine(URL url, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.eachLine(url, closure); - } - - @Deprecated - public static <T> T eachLine(URL url, int firstLine, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.eachLine(url, firstLine, closure); - } - - @Deprecated - public static <T> T eachLine(URL url, String charset, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.eachLine(url, charset, closure); - } - - @Deprecated - public static <T> T eachLine(URL url, String charset, int firstLine, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.eachLine(url, charset, firstLine, closure); - } - - @Deprecated - public static <T> T eachLine(Reader self, Closure<T> closure) throws IOException { - return IOGroovyMethods.eachLine(self, closure); - } - - @Deprecated - public static <T> T eachLine(Reader self, int firstLine, Closure<T> closure) throws IOException { - return IOGroovyMethods.eachLine(self, firstLine, closure); - } - - @Deprecated - public static <T> T splitEachLine(File self, String regex, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.splitEachLine(self, regex, closure); - } - - @Deprecated - public static <T> T splitEachLine(File self, Pattern pattern, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.splitEachLine(self, pattern, closure); - } - - @Deprecated - public static <T> T splitEachLine(File self, String regex, String charset, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.splitEachLine(self, regex, charset, closure); - } - - @Deprecated - public static <T> T splitEachLine(File self, Pattern pattern, String charset, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.splitEachLine(self, pattern, charset, closure); - } - - @Deprecated - public static <T> T splitEachLine(URL self, String regex, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.splitEachLine(self, regex, closure); - } - - @Deprecated - public static <T> T splitEachLine(URL self, Pattern pattern, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.splitEachLine(self, pattern, closure); - } - - @Deprecated - public static <T> T splitEachLine(URL self, String regex, String charset, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.splitEachLine(self, regex, charset, closure); - } - - @Deprecated - public static <T> T splitEachLine(URL self, Pattern pattern, String charset, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.splitEachLine(self, pattern, charset, closure); - } - - @Deprecated - public static <T> T splitEachLine(Reader self, String regex, Closure<T> closure) throws IOException { - return IOGroovyMethods.splitEachLine(self, regex, closure); - } - - @Deprecated - public static <T> T splitEachLine(Reader self, Pattern pattern, Closure<T> closure) throws IOException { - return IOGroovyMethods.splitEachLine(self, pattern, closure); - } - - @Deprecated - public static <T> T splitEachLine(InputStream stream, String regex, String charset, Closure<T> closure) throws IOException { - return IOGroovyMethods.splitEachLine(stream, charset, regex, closure); - } - - @Deprecated - public static <T> T splitEachLine(InputStream stream, Pattern pattern, String charset, Closure<T> closure) throws IOException { - return IOGroovyMethods.splitEachLine(stream, pattern, charset, closure); - } - - @Deprecated - public static <T> T splitEachLine(InputStream stream, String regex, Closure<T> closure) throws IOException { - return IOGroovyMethods.splitEachLine(stream, regex, closure); - } - - @Deprecated - public static <T> T splitEachLine(InputStream stream, Pattern pattern, Closure<T> closure) throws IOException { - return IOGroovyMethods.splitEachLine(stream, pattern, closure); - } - - @Deprecated - public static String readLine(Reader self) throws IOException { - return IOGroovyMethods.readLine(self); - } - - @Deprecated - public static List<String> readLines(File file) throws IOException { - return ResourceGroovyMethods.readLines(file); - } - - @Deprecated - public static List<String> readLines(File file, String charset) throws IOException { - return ResourceGroovyMethods.readLines(file, charset); - } - - @Deprecated - public static List<String> readLines(InputStream stream) throws IOException { - return IOGroovyMethods.readLines(stream); - } - - @Deprecated - public static List<String> readLines(InputStream stream, String charset) throws IOException { - return IOGroovyMethods.readLines(stream, charset); - } - - @Deprecated - public static List<String> readLines(URL self) throws IOException { - return ResourceGroovyMethods.readLines(self); - } - - @Deprecated - public static List<String> readLines(URL self, String charset) throws IOException { - return ResourceGroovyMethods.readLines(self, charset); - } - - @Deprecated - public static List<String> readLines(Reader reader) throws IOException { - return IOGroovyMethods.readLines(reader); - } - - @Deprecated - public static String getText(File file, String charset) throws IOException { - return ResourceGroovyMethods.getText(file, charset); - } - - @Deprecated - public static String getText(File file) throws IOException { - return ResourceGroovyMethods.getText(file); - } - - @Deprecated - public static String getText(URL url) throws IOException { - return ResourceGroovyMethods.getText(url); - } - - @Deprecated - public static String getText(URL url, Map parameters) throws IOException { - return ResourceGroovyMethods.getText(url, parameters); - } - - @Deprecated - public static String getText(URL url, String charset) throws IOException { - return ResourceGroovyMethods.getText(url, charset); - } - - @Deprecated - public static String getText(URL url, Map parameters, String charset) throws IOException { - return ResourceGroovyMethods.getText(url, parameters, charset); - } - - @Deprecated - public static String getText(InputStream is) throws IOException { - return IOGroovyMethods.getText(is); - } - - @Deprecated - public static String getText(InputStream is, String charset) throws IOException { - return IOGroovyMethods.getText(is, charset); - } - - @Deprecated - public static String getText(Reader reader) throws IOException { - return IOGroovyMethods.getText(reader); - } - - @Deprecated - public static String getText(BufferedReader reader) throws IOException { - return IOGroovyMethods.getText(reader); - } - - @Deprecated - public static byte[] getBytes(File file) throws IOException { - return ResourceGroovyMethods.getBytes(file); - } - - @Deprecated - public static byte[] getBytes(URL url) throws IOException { - return ResourceGroovyMethods.getBytes(url); - } - - @Deprecated - public static byte[] getBytes(InputStream is) throws IOException { - return IOGroovyMethods.getBytes(is); - } - - @Deprecated - public static void setBytes(File file, byte[] bytes) throws IOException { - ResourceGroovyMethods.setBytes(file, bytes); - } - - @Deprecated - public static void setBytes(OutputStream os, byte[] bytes) throws IOException { - IOGroovyMethods.setBytes(os, bytes); - } - - @Deprecated - public static void writeLine(BufferedWriter writer, String line) throws IOException { - IOGroovyMethods.writeLine(writer, line); - } - - @Deprecated - public static void write(File file, String text) throws IOException { - ResourceGroovyMethods.write(file, text); - } - - @Deprecated - public static void setText(File file, String text) throws IOException { - ResourceGroovyMethods.setText(file, text); - } - - @Deprecated - public static void setText(File file, String text, String charset) throws IOException { - ResourceGroovyMethods.setText(file, text, charset); - } - - @Deprecated - public static File leftShift(File file, Object text) throws IOException { - return ResourceGroovyMethods.leftShift(file, text); - } - - @Deprecated - public static File leftShift(File file, byte[] bytes) throws IOException { - return ResourceGroovyMethods.leftShift(file, bytes); - } - - @Deprecated - public static File leftShift(File file, InputStream data) throws IOException { - return ResourceGroovyMethods.leftShift(file, data); - } - - @Deprecated - public static void write(File file, String text, String charset) throws IOException { - ResourceGroovyMethods.write(file, text, charset); - } - - @Deprecated - public static void append(File file, Object text) throws IOException { - ResourceGroovyMethods.append(file, text); - } - - @Deprecated - public static void append(File file, byte[] bytes) throws IOException { - ResourceGroovyMethods.append(file, bytes); - } - - @Deprecated - public static void append(File self, InputStream stream ) throws IOException { - ResourceGroovyMethods.append(self, stream); - } - - @Deprecated - public static void append(File file, Object text, String charset) throws IOException { - ResourceGroovyMethods.append(file, text, charset); - } - - @Deprecated - public static void eachFile(final File self, final FileType fileType, final Closure closure) - throws FileNotFoundException, IllegalArgumentException { - ResourceGroovyMethods.eachFile(self, fileType, closure); - } - - @Deprecated - public static void eachFile(final File self, final Closure closure) throws FileNotFoundException, IllegalArgumentException { - ResourceGroovyMethods.eachFile(self, closure); - } - - @Deprecated - public static void eachDir(File self, Closure closure) throws FileNotFoundException, IllegalArgumentException { - ResourceGroovyMethods.eachDir(self, closure); - } - - @Deprecated - public static void eachFileRecurse(final File self, final FileType fileType, final Closure closure) - throws FileNotFoundException, IllegalArgumentException { - ResourceGroovyMethods.eachFileRecurse(self, fileType, closure); - } - - @Deprecated - public static void traverse(final File self, final Map<String, Object> options, final Closure closure) - throws FileNotFoundException, IllegalArgumentException { - ResourceGroovyMethods.traverse(self, options, closure); - } - - @Deprecated - public static void traverse(final File self, final Closure closure) throws FileNotFoundException, IllegalArgumentException { - ResourceGroovyMethods.traverse(self, closure); - } - - @Deprecated - public static void traverse(final File self, final Map<String, Object> options) - throws FileNotFoundException, IllegalArgumentException { - ResourceGroovyMethods.traverse(self, options); - } - - @Deprecated - public static void eachFileRecurse(File self, Closure closure) throws FileNotFoundException, IllegalArgumentException { - ResourceGroovyMethods.eachFileRecurse(self, closure); - } - - @Deprecated - public static void eachDirRecurse(final File self, final Closure closure) throws FileNotFoundException, IllegalArgumentException { - ResourceGroovyMethods.eachDirRecurse(self, closure); - } - - @Deprecated - public static void eachFileMatch(final File self, final FileType fileType, final Object nameFilter, final Closure closure) - throws FileNotFoundException, IllegalArgumentException { - ResourceGroovyMethods.eachFileMatch(self, fileType, nameFilter, closure); - } - - @Deprecated - public static void eachFileMatch(final File self, final Object nameFilter, final Closure closure) - throws FileNotFoundException, IllegalArgumentException { - ResourceGroovyMethods.eachFileMatch(self, nameFilter, closure); - } - - @Deprecated - public static void eachDirMatch(final File self, final Object nameFilter, final Closure closure) throws FileNotFoundException, IllegalArgumentException { - ResourceGroovyMethods.eachDirMatch(self, nameFilter, closure); - } - - @Deprecated - public static boolean deleteDir(final File self) { - return ResourceGroovyMethods.deleteDir(self); - } - - @Deprecated - public static boolean renameTo(final File self, String newPathName) { - return ResourceGroovyMethods.renameTo(self, newPathName); - } - - @Deprecated - public static Iterator<String> iterator(Reader self) { - return IOGroovyMethods.iterator(self); - } - - @Deprecated - public static Iterator<Byte> iterator(InputStream self) { - return IOGroovyMethods.iterator(self); - } - - @Deprecated - public static Iterator<Byte> iterator(final DataInputStream self) { - return IOGroovyMethods.iterator(self); - } - - @Deprecated - public static File asWritable(File file) { - return ResourceGroovyMethods.asWritable(file); - } - - @Deprecated - public static <T> T asType(File f, Class<T> c) { - return ResourceGroovyMethods.asType(f, c); - } - - @Deprecated - public static File asWritable(File file, String encoding) { - return ResourceGroovyMethods.asWritable(file, encoding); - } - - @Deprecated - public static BufferedReader newReader(File file) throws IOException { - return ResourceGroovyMethods.newReader(file); - } - - @Deprecated - public static BufferedReader newReader(File file, String charset) - throws FileNotFoundException, UnsupportedEncodingException { - return ResourceGroovyMethods.newReader(file, charset); - } - - @Deprecated - public static BufferedReader newReader(InputStream self) { - return IOGroovyMethods.newReader(self); - } - - @Deprecated - public static BufferedReader newReader(InputStream self, String charset) throws UnsupportedEncodingException { - return IOGroovyMethods.newReader(self, charset); - } - - @Deprecated - public static <T> T withReader(File file, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.withReader(file, closure); - } - - @Deprecated - public static <T> T withReader(File file, String charset, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.withReader(file, charset, closure); - } - - @Deprecated - public static BufferedOutputStream newOutputStream(File file) throws IOException { - return ResourceGroovyMethods.newOutputStream(file); - } - - @Deprecated - public static DataOutputStream newDataOutputStream(File file) throws IOException { - return ResourceGroovyMethods.newDataOutputStream(file); - } - - @Deprecated - public static Object withOutputStream(File file, Closure closure) throws IOException { - return ResourceGroovyMethods.withOutputStream(file, closure); - } - - @Deprecated - public static Object withInputStream(File file, Closure closure) throws IOException { - return ResourceGroovyMethods.withInputStream(file, closure); - } - - @Deprecated - public static <T> T withInputStream(URL url, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.withInputStream(url, closure); - } - - @Deprecated - public static <T> T withDataOutputStream(File file, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.withDataOutputStream(file, closure); - } - - @Deprecated - public static <T> T withDataInputStream(File file, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.withDataInputStream(file, closure); - } - - @Deprecated - public static BufferedWriter newWriter(File file) throws IOException { - return ResourceGroovyMethods.newWriter(file); - } - - @Deprecated - public static BufferedWriter newWriter(File file, boolean append) throws IOException { - return ResourceGroovyMethods.newWriter(file, append); - } - - @Deprecated - public static BufferedWriter newWriter(File file, String charset, boolean append) throws IOException { - return ResourceGroovyMethods.newWriter(file, charset, append); - } - - @Deprecated - public static BufferedWriter newWriter(File file, String charset) throws IOException { - return ResourceGroovyMethods.newWriter(file, charset); - } - - @Deprecated - public static <T> T withWriter(File file, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.withWriter(file, closure); - } - - @Deprecated - public static <T> T withWriter(File file, String charset, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.withWriter(file, charset, closure); - } - - @Deprecated - public static <T> T withWriterAppend(File file, String charset, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.withWriterAppend(file, charset, closure); - } - - @Deprecated - public static <T> T withWriterAppend(File file, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.withWriterAppend(file, closure); - } - - @Deprecated - public static PrintWriter newPrintWriter(File file) throws IOException { - return ResourceGroovyMethods.newPrintWriter(file); - } - - @Deprecated - public static PrintWriter newPrintWriter(File file, String charset) throws IOException { - return ResourceGroovyMethods.newPrintWriter(file, charset); - } - - @Deprecated - public static PrintWriter newPrintWriter(Writer writer) { - return IOGroovyMethods.newPrintWriter(writer); - } - - @Deprecated - public static <T> T withPrintWriter(File file, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.withPrintWriter(file, closure); - } - - @Deprecated - public static <T> T withPrintWriter(File file, String charset, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.withPrintWriter(file, charset, closure); - } - - @Deprecated - public static <T> T withPrintWriter(Writer writer, Closure<T> closure) throws IOException { - return IOGroovyMethods.withPrintWriter(writer, closure); - } - - @Deprecated - public static <T> T withWriter(Writer writer, Closure<T> closure) throws IOException { - return IOGroovyMethods.withWriter(writer, closure); - } - - @Deprecated - public static <T> T withReader(Reader reader, Closure<T> closure) throws IOException { - return IOGroovyMethods.withReader(reader, closure); - } - - @Deprecated - public static <T> T withStream(InputStream stream, Closure<T> closure) throws IOException { - return IOGroovyMethods.withStream(stream, closure); - } - - @Deprecated - public static <T> T withReader(URL url, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.withReader(url, closure); - } - - @Deprecated - public static <T> T withReader(URL url, String charset, Closure<T> closure) throws IOException { - return ResourceGroovyMethods.withReader(url, charset, closure); - } - - @Deprecated - public static <T> T withReader(InputStream in, Closure<T> closure) throws IOException { - return IOGroovyMethods.withReader(in, closure); - } - - @Deprecated - public static <T> T withReader(InputStream in, String charset, Closure<T> closure) throws IOException { - return IOGroovyMethods.withReader(in, charset, closure); - } - - @Deprecated - public static <T> T withWriter(OutputStream stream, Closure<T> closure) throws IOException { - return IOGroovyMethods.withWriter(stream, closure); - } - - @Deprecated - public static <T> T withWriter(OutputStream stream, String charset, Closure<T> closure) throws IOException { - return IOGroovyMethods.withWriter(stream, charset, closure); - } - - @Deprecated - public static <T> T withStream(OutputStream os, Closure<T> closure) throws IOException { - return IOGroovyMethods.withStream(os, closure); - } - - @Deprecated - public static BufferedInputStream newInputStream(File file) throws FileNotFoundException { - return ResourceGroovyMethods.newInputStream(file); - } - - @Deprecated - public static BufferedInputStream newInputStream(URL url) throws MalformedURLException, IOException { - return ResourceGroovyMethods.newInputStream(url); - } - - @Deprecated - public static BufferedInputStream newInputStream(URL url, Map parameters) throws MalformedURLException, IOException { - return ResourceGroovyMethods.newInputStream(url, parameters); - } - - @Deprecated - public static BufferedReader newReader(URL url) throws MalformedURLException, IOException { - return ResourceGroovyMethods.newReader(url); - } - - @Deprecated - public static BufferedReader newReader(URL url, Map parameters) throws MalformedURLException, IOException { - return ResourceGroovyMethods.newReader(url, parameters); - } - - @Deprecated - public static BufferedReader newReader(URL url, String charset) throws MalformedURLException, IOException { - return ResourceGroovyMethods.newReader(url, charset); - } - - @Deprecated - public static BufferedReader newReader(URL url, Map parameters, String charset) throws MalformedURLException, IOException { - return ResourceGroovyMethods.newReader(url, parameters, charset); - } - - @Deprecated - public static DataInputStream newDataInputStream(File file) throws FileNotFoundException { - return ResourceGroovyMethods.newDataInputStream(file); - } - - @Deprecated - public static void eachByte(File self, Closure closure) throws IOException { - ResourceGroovyMethods.eachByte(self, closure); - } - - @Deprecated - public static void eachByte(File self, int bufferLen, Closure closure) throws IOException { - ResourceGroovyMethods.eachByte(self, bufferLen, closure); - } - - @Deprecated - public static void eachByte(InputStream is, Closure closure) throws IOException { - IOGroovyMethods.eachByte(is, closure); - } - - @Deprecated - public static void eachByte(InputStream is, int bufferLen, Closure closure) throws IOException { - IOGroovyMethods.eachByte(is, bufferLen, closure); - } - - @Deprecated - public static void eachByte(URL url, Closure closure) throws IOException { - ResourceGroovyMethods.eachByte(url, closure); - } - - @Deprecated - public static void eachByte(URL url, int bufferLen, Closure closure) throws IOException { - ResourceGroovyMethods.eachByte(url, bufferLen, closure); - } - - @Deprecated - public static void transformChar(Reader self, Writer writer, Closure closure) throws IOException { - IOGroovyMethods.transformChar(self, writer, closure); - } - - @Deprecated - public static void transformLine(Reader reader, Writer writer, Closure closure) throws IOException { - IOGroovyMethods.transformLine(reader, writer, closure); - } - - @Deprecated - public static void filterLine(Reader reader, Writer writer, Closure closure) throws IOException { - IOGroovyMethods.filterLine(reader, writer, closure); - } - - @Deprecated - public static Writable filterLine(File self, Closure closure) throws IOException { - return ResourceGroovyMethods.filterLine(self, closure); - } - - @Deprecated - public static Writable filterLine(File self, String charset, Closure closure) throws IOException { - return ResourceGroovyMethods.filterLine(self, closure); - } - - @Deprecated - public static void filterLine(File self, Writer writer, Closure closure) throws IOException { - ResourceGroovyMethods.filterLine(self, writer, closure); - } - - @Deprecated - public static void filterLine(File self, Writer writer, String charset, Closure closure) throws IOException { - ResourceGroovyMethods.filterLine(self, writer, charset, closure); - } - - @Deprecated - public static Writable filterLine(Reader reader, final Closure closure) { - return IOGroovyMethods.filterLine(reader, closure); - } - - @Deprecated - public static Writable filterLine(InputStream self, Closure predicate) { - return IOGroovyMethods.filterLine(self, predicate); - } - - @Deprecated - public static Writable filterLine(InputStream self, String charset, Closure predicate) throws UnsupportedEncodingException { - return IOGroovyMethods.filterLine(self, charset, predicate); - } - - @Deprecated - public static void filterLine(InputStream self, Writer writer, Closure predicate) throws IOException { - IOGroovyMethods.filterLine(self, writer, predicate); - } - - @Deprecated - public static void filterLine(InputStream self, Writer writer, String charset, Closure predicate) throws IOException { - IOGroovyMethods.filterLine(self, writer, charset, predicate); - } - - @Deprecated - public static Writable filterLine(URL self, Closure predicate) throws IOException { - return ResourceGroovyMethods.filterLine(self, predicate); - } - - @Deprecated - public static Writable filterLine(URL self, String charset, Closure predicate) throws IOException { - return ResourceGroovyMethods.filterLine(self, charset, predicate); - } - - @Deprecated - public static void filterLine(URL self, Writer writer, Closure predicate) throws IOException { - ResourceGroovyMethods.filterLine(self, writer, predicate); - } - - @Deprecated - public static void filterLine(URL self, Writer writer, String charset, Closure predicate) throws IOException { - ResourceGroovyMethods.filterLine(self, writer, charset, predicate); - } - - @Deprecated - public static byte[] readBytes(File file) throws IOException { - return ResourceGroovyMethods.readBytes(file); - } - /** * Dynamically wraps an instance into something which implements the * supplied trait classes. It is guaranteed that the returned object
