private static Decodable createFilesystemInformation ( byte infoClass ) throws SMBProtocolDecodingException {
        switch ( infoClass ) {
        case FileSystemInformation.FS_FULL_SIZE_INFO:
            return new FileFsFullSizeInformation();
        case FileSystemInformation.FS_SIZE_INFO:
            return new FileFsSizeInformation();
        default:
            throw new SMBProtocolDecodingException("Unknown filesystem info class " + infoClass);
        }
    }
private static Decodable createFilesystemInformation ( byte infoClass ) throws SMBProtocolDecodingException { switch ( infoClass ) { case FileSystemInformation . FS_FULL_SIZE_INFO : return new FileFsFullSizeInformation ( ) ; case FileSystemInformation . FS_SIZE_INFO : return new FileFsSizeInformation ( ) ; default : throw new SMBProtocolDecodingException ( "Unknown filesystem info class " + infoClass ) ; } }
@param infoClass
@return
@throws SMBProtocolDecodingException