public static PrototypeMeasurementFilterSpecification loadFromPath ( String path ) throws IOException { byte [ ] jsonData = Files . readAllBytes ( Paths . get ( path ) ) ; ObjectMapper objectMapper = new ObjectMapper ( ) ; return objectMapper . readValue ( jsonData , PrototypeMeasurementFilterSpecification . class ) ; }
Loads a specification from a file .