protected int getCounterFromName(String shortName) {
		Pattern pattern = Pattern.compile(baseFilename + "-([\\d+]{1,})");
		Matcher matcher = pattern.matcher(shortName);
		if (matcher.find()) {
			return Integer.parseInt(matcher.group(1));
		}
		return -1;
	}
Logic for writing to files of a specified size or other strategies go here as they are shared across implementations

@author Mark Pollack
spring-xd-hadoop/src/main/java/org/springframework/xd/hadoop/fs/AbstractHdfsWriter.java