com.hierynomus.msfscc.fileinformation.FileIdBothDirectoryInformation Maven / Gradle / Ivy
/*
* 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.msfscc.fileinformation;
import com.hierynomus.msdtyp.FileTime;
public class FileIdBothDirectoryInformation extends FileDirectoryQueryableInformation {
private final FileTime creationTime;
private final FileTime lastAccessTime;
private final FileTime lastWriteTime;
private final FileTime changeTime;
private final long endOfFile;
private final long allocationSize;
private final long fileAttributes;
private final long eaSize;
private final String shortName;
private final long fileId; // A 64-bit value that uniquely identifies a file within a given volume.
@SuppressWarnings("PMD.ExcessiveParameterList")
FileIdBothDirectoryInformation(long nextOffset, long fileIndex, String fileName, FileTime creationTime, FileTime lastAccessTime, FileTime lastWriteTime, FileTime changeTime, long endOfFile, long allocationSize, long fileAttributes, long eaSize, String shortName, long fileId) {
super(nextOffset, fileIndex, fileName);
this.creationTime = creationTime;
this.lastAccessTime = lastAccessTime;
this.lastWriteTime = lastWriteTime;
this.changeTime = changeTime;
this.endOfFile = endOfFile;
this.allocationSize = allocationSize;
this.fileAttributes = fileAttributes;
this.eaSize = eaSize;
this.shortName = shortName;
this.fileId = fileId;
}
public FileTime getCreationTime() {
return creationTime;
}
public FileTime getLastAccessTime() {
return lastAccessTime;
}
public FileTime getLastWriteTime() {
return lastWriteTime;
}
public FileTime getChangeTime() {
return changeTime;
}
public long getEndOfFile() {
return endOfFile;
}
public long getAllocationSize() {
return allocationSize;
}
public long getFileAttributes() {
return fileAttributes;
}
public long getEaSize() {
return eaSize;
}
public String getShortName() {
return shortName;
}
public long getFileId() {
return fileId;
}
}