public static Builder from(Path swaggerPath){
  Validate.notNull(swaggerPath,"swaggerPath must not be null");
  if (Files.notExists(swaggerPath)) {
    throw new IllegalArgumentException(String.format("swaggerPath does not exist: %s",swaggerPath));
  }
  try {
    if (Files.isHidden(swaggerPath)) {
      throw new IllegalArgumentException("swaggerPath must not be a hidden file");
    }
  }
 catch (  IOException e) {
    throw new RuntimeException("Failed to check if swaggerPath is a hidden file",e);
  }
  return new Builder(swaggerPath);
}

public static Builder from ( Path swaggerPath ) { Validate . notNull ( swaggerPath , "swaggerPath must not be null" ) ; if ( Files . notExists ( swaggerPath ) ) { throw new IllegalArgumentException ( String . format ( "swaggerPath does not exist: %s" , swaggerPath ) ) ; } try { if ( Files . isHidden ( swaggerPath ) ) { throw new IllegalArgumentException ( "swaggerPath must not be a hidden file" ) ; } } catch ( IOException e ) { throw new RuntimeException ( "Failed to check if swaggerPath is a hidden file" , e ) ; } return new Builder ( swaggerPath ) ; }
creates a swagger2markupconverter . builder using a local path .
