static LineEnding fromEol(EOL eol){
switch (eol) {
case CRLF:
    return LineEnding.WINDOWS;
case LF:
  return LineEnding.UNIX;
case NATIVE:
return LineEnding.PLATFORM_NATIVE;
default :
throw Unhandled.enumException(eol);
}
}

static LineEnding fromEol ( EOL eol ) { switch ( eol ) { case CRLF : return LineEnding . WINDOWS ; case LF : return LineEnding . UNIX ; case NATIVE : return LineEnding . PLATFORM_NATIVE ; default : throw Unhandled . enumException ( eol ) ; } }
creates a lineending from an eol .
