001    /*
002     * Copyright 2012-2015 UnboundID Corp.
003     * All Rights Reserved.
004     */
005    /*
006     * Copyright (C) 2012-2015 UnboundID Corp.
007     *
008     * This program is free software; you can redistribute it and/or modify
009     * it under the terms of the GNU General Public License (GPLv2 only)
010     * or the terms of the GNU Lesser General Public License (LGPLv2.1 only)
011     * as published by the Free Software Foundation.
012     *
013     * This program is distributed in the hope that it will be useful,
014     * but WITHOUT ANY WARRANTY; without even the implied warranty of
015     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
016     * GNU General Public License for more details.
017     *
018     * You should have received a copy of the GNU General Public License
019     * along with this program; if not, see <http://www.gnu.org/licenses>.
020     */
021    package com.unboundid.ldif;
022    
023    
024    
025    import com.unboundid.util.ThreadSafety;
026    import com.unboundid.util.ThreadSafetyLevel;
027    
028    
029    
030    /**
031     * This enum defines a set of possible behaviors that may be exhibited by the
032     * LDIF reader when encountering trailing spaces in attribute values that are
033     * not base64-encoded.
034     */
035    @ThreadSafety(level=ThreadSafetyLevel.COMPLETELY_THREADSAFE)
036    public enum TrailingSpaceBehavior
037    {
038      /**
039       * Indicates that illegal trailing spaces should be silently stripped from
040       * attribute values.
041       */
042      STRIP,
043    
044    
045    
046      /**
047       * Indicates that illegal trailing spaces should be retained (as if the value
048       * had been base64-encoded).
049       */
050      RETAIN,
051    
052    
053    
054      /**
055       * Indicates that illegal trailing spaces should cause the associated entry to
056       * be rejected.
057       */
058      REJECT;
059    }