Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static String getLogType(final String line) {
- String[] splited = line.split("\\s+");
- if (splited.length < 3) {
- return "";
- }
- if (!isDateValid(splited[0] + " " + splited[1])) {
- return "";
- }
- return splited[2];
- }
Advertisement
Add Comment
Please, Sign In to add comment