private static long parseTimestamp ( String fileName ) throws NumberFormatException { String numberPart = fileName . substring ( 0 , fileName . length ( ) - 5 ) ; return Long . parseLong ( numberPart ) ; }
Parse the timestamp from a filename .