/*
- * Sone - SubstringFilter.java - Copyright © 2010–2015 David Roden
+ * Sone - SubstringFilter.java - Copyright © 2010–2016 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* “start” and “length.” “length” is optional and defaults to “the rest of the
* string.” “start” starts at {@code 0} and can be negative to denote starting
* at the end of the string.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class SubstringFilter implements Filter {
}
String dataString = String.valueOf(data);
int dataLength = dataString.length();
- int length = Integer.MAX_VALUE;
+ int length = dataLength;
try {
length = Integer.parseInt(lengthString);
} catch (NumberFormatException nfe1) {