GW2DetermineFileTypeAndReport
GW2DetermineFileTypeAndReport 함수는 지정된 파일의 파일 형식을 판별하고 보고서를 생성합니다. 이는 세션과 관련이 없습니다.
- C++
- C#
- Java
- Python
- JavaScript
#include "glasswall.core2.api.h"
ft_t GW2DetermineFileTypeAndReport(const char *inputFileBuffer, size_t inputLength, const char *report)
매개변수
inputFileBuffer 이 함수에서 처리할 파일이 들어 있는 메모리 위치입니다.
inputLength inputFileBuffer의 길이(바이트 단위)
report 보고서가 기록될 일반 텍스트 파일의 경로입니다. 파일이 존재하지 않으면 생성됩니다.
반환값
판별된 파일 형식을 나타내는 열거형 타입 ft_t입니다. 파일 형식을 판별할 수 없으면 ft_unknown가 반환됩니다.
개요
반환값
개요
public int GW2DetermineFileTypeAndReport(byte[] fileBuffer, String reportFilePath) throws GlasswallException, NullPointerException
public int GW2DetermineFileTypeAndReport(byte[] fileBuffer, int length, String reportFilePath) throws GlasswallException, NullPointerException
설명
The GW2DetermineFileTypeAndReport function determines the file type of the file held in the byte array fileBuffer and writes out a summary XML report to the path specified in reportFilePath. The length of the fileBuffer may optionally be specified.
반환값
GW2DetermineFileTypeAndReport 함수는 판별된 파일 형식을 나타내는 정수를 반환합니다. 열거형 상수 목록은 C 소스 헤더 파일 filetype.h에 있습니다. 반환값이 0이면 파일 형식을 판별할 수 없음을 의미합니다.
성공하면 XML 보고서가 reportFilePath에 지정된 경로에 기록됩니다.
NullPointerException 예외는 fileBuffer 또는 reportFilePath 버퍼가 null이거나 비어 있는 경우 발생합니다.
GlasswallException 예외는 fileBuffer를 가져올 수 없거나 reportFilePath를 UTF-8로 변환할 수 없는 경우 발생합니다.
개요
반환값
개요
반환값