Format identifyFormat ( String pom ) { for ( String separator : LINE_SEPARATORS ) { if ( pom . contains ( separator ) ) { return new Format ( separator ) ; } } throw new IllegalArgumentException ( "The pom.xml has no known line separator." ) ; }
Identifies the output format for the given POM .