Path filePath = Paths.get("myFile.txt");
Path classPathResource = Paths.get(MyClass.class.getClassLoader().getResource(classpathResource).toURI());
Files.readAllBytes( path );
List<MyClass> myObjects = OBJECT_MAPPER.readValue(jsonInput, new TypeReference<List<MyClass>>(){});
System.out.printf("[%20s]", value);
//[ value]
System.out.printf("[%-20s]", value);
//[value ]