All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hierynomus.mssmb2.SMB2CreateOptions Maven / Gradle / Ivy

There is a newer version: 0.13.0
Show newest version
/*
 * Copyright (C)2016 - SMBJ Contributors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hierynomus.mssmb2;

import com.hierynomus.protocol.commons.EnumWithValue;

/**
 * SMB2 Create 2.2.13 - CreateOptions
 */
public enum SMB2CreateOptions implements EnumWithValue {
    FILE_DIRECTORY_FILE(0x00000001L),
    FILE_WRITE_THROUGH(0x00000002L),
    FILE_SEQUENTIAL_ONLY(0x00000004L),
    FILE_NO_INTERMEDIATE_BUFFERING(0x00000008L),
    FILE_SYNCHRONOUS_IO_ALERT(0x00000010L),
    FILE_SYNCHRONOUS_IO_NONALERT(0x00000020L),
    FILE_NON_DIRECTORY_FILE(0x00000040L),
    FILE_COMPLETE_IF_OPLOCKED(0x00000100L),
    FILE_NO_EA_KNOWLEDGE(0x00000200L),
    FILE_RANDOM_ACCESS(0x00000800L),
    FILE_DELETE_ON_CLOSE(0x00001000L),
    FILE_OPEN_BY_FILE_ID(0x00002000L),
    FILE_OPEN_FOR_BACKUP_INTENT(0x00004000L),
    FILE_NO_COMPRESSION(0x00008000L),
    FILE_OPEN_REMOTE_INSTANCE(0x00000400L),
    FILE_OPEN_REQUIRING_OPLOCK(0x00010000L),
    FILE_DISALLOW_EXCLUSIVE(0x00020000L),
    FILE_RESERVE_OPFILTER(0x00100000L),
    FILE_OPEN_REPARSE_POINT(0x00200000L),
    FILE_OPEN_NO_RECALL(0x00400000L),
    FILE_OPEN_FOR_FREE_SPACE_QUERY(0x00800000L);

    private long value;

    SMB2CreateOptions(long value) {
        this.value = value;
    }

    public long getValue() {
        return value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy