/** * Matches and forgets optional spaces. * * @param name the name * @param pos the pos * @throws LdapInvalidDnException If some invalid chars are found */ private static void matchSpaces( char[] name, Position pos ) throws LdapInvalidDnException { while ( hasMoreChars( pos ) ) { char c = nextChar( name, pos, true ); if ( c != ' ' ) { pos.start--; break; } } }
/** * Matches and forgets optional spaces. * * @param name the name * @param pos the pos * @throws LdapInvalidDnException If some invalid chars are found */ private static void matchSpaces( char[] name, Position pos ) throws LdapInvalidDnException { while ( hasMoreChars( pos ) ) { char c = nextChar( name, pos, true ); if ( c != ' ' ) { pos.start--; break; } } }
/** * Matches and forgets optional spaces. * * @param name the name * @param pos the pos * @throws LdapInvalidDnException If some invalid chars are found */ private static void matchSpaces( char[] name, Position pos ) throws LdapInvalidDnException { while ( hasMoreChars( pos ) ) { char c = nextChar( name, pos, true ); if ( c != ' ' ) { pos.start--; break; } } }
char c = nextChar( name, pos, true );
char c = nextChar( name, pos, true );
char c = nextChar( name, pos, true );
/** * Matches the equals character. * * @param name the name * @param pos the pos * * @throws LdapInvalidDnException the invalid name exception */ private static void matchEquals( char[] name, Position pos ) throws LdapInvalidDnException { char c = nextChar( name, pos, true ); if ( c != '=' ) { throw new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, I18n.err( I18n.ERR_13609_EQUAL_EXPECTED, c, pos.start ) ); } }
/** * Matches the equals character. * * @param name the name * @param pos the pos * * @throws LdapInvalidDnException the invalid name exception */ private static void matchEquals( char[] name, Position pos ) throws LdapInvalidDnException { char c = nextChar( name, pos, true ); if ( c != '=' ) { throw new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, I18n.err( I18n.ERR_13609_EQUAL_EXPECTED, c, pos.start ) ); } }
/** * Matches the equals character. * * @param name the name * @param pos the pos * * @throws LdapInvalidDnException the invalid name exception */ private static void matchEquals( char[] name, Position pos ) throws LdapInvalidDnException { char c = nextChar( name, pos, true ); if ( c != '=' ) { throw new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, I18n.err( I18n.ERR_13609_EQUAL_EXPECTED, c, pos.start ) ); } }
char c = nextChar( chars, pos, true );
char c = nextChar( chars, pos, true );
char c = nextChar( chars, pos, true );
char c = nextChar( name, pos, true );
char c = nextChar( name, pos, true );
char c = nextChar( name, pos, false );
char c = nextChar( name, pos, false );
char c = nextChar( name, pos, false );