Class FileInformationFactory
java.lang.Object
com.hierynomus.msfscc.fileinformation.FileInformationFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map
<Class<?>, FileInformation.Decoder<?>> private static final Map
<Class<?>, FileInformation.Encoder<?>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <F extends FileDirectoryQueryableInformation>
Iterator<F> createFileInformationIterator
(byte[] data, FileInformation.Decoder<F> decoder) static <F extends FileInformation>
FileInformation.Decoder<F> getDecoder
(Class<F> fileInformationClass) static <F extends FileInformation>
FileInformation.Encoder<F> getEncoder
(F fileInformation) static <F extends FileInformation>
FileInformation.Encoder<F> getEncoder
(Class<F> fileInformationClass) private static FileAccessInformation
parseFileAccessInformation
(Buffer<?> buffer) private static FileAlignmentInformation
parseFileAlignmentInformation
(Buffer<?> buffer) static FileAllInformation
parseFileAllInformation
(Buffer<?> buffer) [MS-SMB2] 2.2.38 SMB2 QUERY_INFO Response, SMB2_0_INFO_FILE/FileAllInformationprivate static FileBasicInformation
parseFileBasicInformation
(Buffer<?> buffer) static FileBothDirectoryInformation
parseFileBothDirectoryInformation
(Buffer<?> buffer) 2.4.8 FileBothDirectoryInformationstatic FileDirectoryInformation
parseFileDirectoryInformation
(Buffer<?> buffer) 2.4.10 FileDirectoryInformationprivate static FileEaInformation
parseFileEaInformation
(Buffer<?> buffer) static FileFullDirectoryInformation
parseFileFullDirectoryInformation
(Buffer<?> buffer) 2.4.14 FileFullDirectoryInformationparseFileIdBothDirectoryInformation
(Buffer<?> buffer) 2.4.17 FileIdBothDirectoryInformationparseFileIdFullDirectoryInformation
(Buffer<?> buffer) 2.4.18 FileIdFullDirectoryInformationstatic <F extends FileDirectoryQueryableInformation>
List<F> parseFileInformationList
(byte[] data, FileInformation.Decoder<F> decoder) [MS-SMB2] 2.2.34 SMB2 QUERY_DIRECTORY Response for FileInformationClass->FileIdBothDirectoryInformationprivate static FileInternalInformation
parseFileInternalInformation
(Buffer<?> buffer) private static FileModeInformation
parseFileModeInformation
(Buffer<?> buffer) private static String
parseFileNameInformation
(Buffer<?> buffer) static FileNamesInformation
parseFileNamesInformation
(Buffer<?> buffer) 2.4.26 FileNamesInformationprivate static FilePositionInformation
parseFilePositionInformation
(Buffer<?> buffer) private static FileStandardInformation
parseFileStandardInformation
(Buffer<?> buffer) private static FileStreamInformation
parseFileStreamInformation
(Buffer<?> buffer) 2.4.40 FileStreamInformationstatic void
writeFileRenameInformation
(FileRenameInformation information, Buffer<?> buffer) MS-FSCC 2.4.34.2 FileRenameInformation for SMB2
-
Field Details
-
encoders
-
decoders
-
-
Constructor Details
-
FileInformationFactory
private FileInformationFactory()
-
-
Method Details
-
getEncoder
-
getEncoder
public static <F extends FileInformation> FileInformation.Encoder<F> getEncoder(Class<F> fileInformationClass) -
getDecoder
public static <F extends FileInformation> FileInformation.Decoder<F> getDecoder(Class<F> fileInformationClass) -
parseFileInformationList
public static <F extends FileDirectoryQueryableInformation> List<F> parseFileInformationList(byte[] data, FileInformation.Decoder<F> decoder) [MS-SMB2] 2.2.34 SMB2 QUERY_DIRECTORY Response for FileInformationClass->FileIdBothDirectoryInformation- Parameters:
data
-decoder
-- Returns:
-
createFileInformationIterator
public static <F extends FileDirectoryQueryableInformation> Iterator<F> createFileInformationIterator(byte[] data, FileInformation.Decoder<F> decoder) -
parseFileAllInformation
public static FileAllInformation parseFileAllInformation(Buffer<?> buffer) throws Buffer.BufferException [MS-SMB2] 2.2.38 SMB2 QUERY_INFO Response, SMB2_0_INFO_FILE/FileAllInformation[MS-FSCC] 2.4.2 FileAllInformation
- Throws:
Buffer.BufferException
-
parseFileNameInformation
- Throws:
Buffer.BufferException
-
parseFileBasicInformation
private static FileBasicInformation parseFileBasicInformation(Buffer<?> buffer) throws Buffer.BufferException - Throws:
Buffer.BufferException
-
parseFileStandardInformation
private static FileStandardInformation parseFileStandardInformation(Buffer<?> buffer) throws Buffer.BufferException - Throws:
Buffer.BufferException
-
parseFileInternalInformation
private static FileInternalInformation parseFileInternalInformation(Buffer<?> buffer) throws Buffer.BufferException - Throws:
Buffer.BufferException
-
parseFileEaInformation
private static FileEaInformation parseFileEaInformation(Buffer<?> buffer) throws Buffer.BufferException - Throws:
Buffer.BufferException
-
parseFileStreamInformation
private static FileStreamInformation parseFileStreamInformation(Buffer<?> buffer) throws Buffer.BufferException 2.4.40 FileStreamInformation- Throws:
Buffer.BufferException
-
parseFileAccessInformation
private static FileAccessInformation parseFileAccessInformation(Buffer<?> buffer) throws Buffer.BufferException - Throws:
Buffer.BufferException
-
parseFilePositionInformation
private static FilePositionInformation parseFilePositionInformation(Buffer<?> buffer) throws Buffer.BufferException - Throws:
Buffer.BufferException
-
parseFileModeInformation
private static FileModeInformation parseFileModeInformation(Buffer<?> buffer) throws Buffer.BufferException - Throws:
Buffer.BufferException
-
parseFileAlignmentInformation
private static FileAlignmentInformation parseFileAlignmentInformation(Buffer<?> buffer) throws Buffer.BufferException - Throws:
Buffer.BufferException
-
parseFileBothDirectoryInformation
public static FileBothDirectoryInformation parseFileBothDirectoryInformation(Buffer<?> buffer) throws Buffer.BufferException 2.4.8 FileBothDirectoryInformation- Throws:
Buffer.BufferException
-
parseFileDirectoryInformation
public static FileDirectoryInformation parseFileDirectoryInformation(Buffer<?> buffer) throws Buffer.BufferException 2.4.10 FileDirectoryInformation- Throws:
Buffer.BufferException
-
parseFileFullDirectoryInformation
public static FileFullDirectoryInformation parseFileFullDirectoryInformation(Buffer<?> buffer) throws Buffer.BufferException 2.4.14 FileFullDirectoryInformation- Throws:
Buffer.BufferException
-
parseFileIdBothDirectoryInformation
public static FileIdBothDirectoryInformation parseFileIdBothDirectoryInformation(Buffer<?> buffer) throws Buffer.BufferException 2.4.17 FileIdBothDirectoryInformation- Throws:
Buffer.BufferException
-
parseFileIdFullDirectoryInformation
public static FileIdFullDirectoryInformation parseFileIdFullDirectoryInformation(Buffer<?> buffer) throws Buffer.BufferException 2.4.18 FileIdFullDirectoryInformation- Throws:
Buffer.BufferException
-
parseFileNamesInformation
public static FileNamesInformation parseFileNamesInformation(Buffer<?> buffer) throws Buffer.BufferException 2.4.26 FileNamesInformation- Throws:
Buffer.BufferException
-
writeFileRenameInformation
MS-FSCC 2.4.34.2 FileRenameInformation for SMB2
-