GW2RegisterExportTextDumpFile
GW2RegisterExportTextDumpFile 関数は、指定されたファイルパスをセッションに登録します。エクスポートされたテキストダンプデータはそのファイルに配置されます。この関数を使用すると、そのセッションの Export Process Mode に対して Text Dump Option が有効になります。サポートされているファイル形式および Text Dump の制限に関する詳細は、Content Export & Import ページを参照してください。
- C++
- C#
- Java
- Python
- JavaScript
概要
GW2RegisterExportTextDumpFile 関数は、textDumpFilePathName が指す文字列で名前が指定されたファイルを、session. で示されるセッションに登録します。エクスポートされたテキストダンプデータはそのファイルに配置されます。この関数を使用すると、そのセッションの Export Process Mode に対して Text Dump Option が有効になります。
#include "glasswall.core2.api.h"
int GW2RegisterExportTextDumpFile(
Session session,
const char *textDumpFilePathName);
戻り値
整数の GW2_RetStatus 列挙値を返します。負の数は失敗を示します。
概要
public int RegisterTextDumpFile(
int session,
string textDumptFilePath)
戻り値
整数の GW2_RetStatus 列挙値を返します。負の数は失敗を示します。
概要
import com.glasswall.core2javabridge.*;
public int GW2RegisterExportTextDumpFile(int session, String exportTextDumpFilePath) throws GlasswallException, NullPointerException
(Deprecated)
public int GW2RegisterExportTextDumpFile(int session, byte[] exportTextDumpFilePath) throws GlasswallException, NullPointerException
注
The GW2RegisterExportTextDumpFile function parameters have been updated to use String in place of byte[]. The original function has been deprecated.
戻り値
GW2RegisterExportTextDumpFile 関数は、GW2_RetStatus 列挙型を int に変換して返します。エラーが発生した場合、値は負になります。0 は成功を示します。詳細については、API Overview/Return types を参照してください。
A NullPointerException exception will be thrown if exportTextDumpFilePath is null or empty.
A GlasswallException exception will be thrown if session is invalid, if the exportTextDumpFilePath could not be retrieved, or if the exportTextDumpFilePath could not be converted to UTF-8.
概要
指定された session に対して、エクスポートするテキストダンプファイルを登録します。エクスポート用テキストダンプファイルは、その session の run_session 呼び出し中に作成されます。
def _GW2RegisterExportTextDumpFile(self, session: int, output_file: str):
""" Registers an export text dump to be written to file.
Args:
session (int): The session integer.
output_file (str): The file path of the text dump file.
Returns:
gw_return_object (glasswall.GwReturnObj): A GwReturnObj instance with the attributes 'session', 'output_file', 'status'.
"""
戻り値
gw_return_object (glasswall.GwReturnObj): 'session'、'output_file'、'status' の属性を持つ GwReturnObj インスタンス。
status 属性は整数の GW2_RetStatus enum 値です。負の数は失敗を示します。
概要
この関数は、指定されたエクスポートファイルを指定された session に登録します
/**
* @param {number} session The ID of the session.
* @param {string} textDumpFilePathName The path of the file to be registered.
*/
GW2RegisterExportTextDumpFile(session, textDumpFilePathName)
戻り値
整数の GW2_RetStatus 列挙値を返します。負の数は失敗を示します。