private static void WriteLine38(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle format, global::net.sf.jni4net.utils.JniLocalHandle arg) { // (Ljava/lang/String;[Lsystem/Object;)V // (LSystem/String;[LSystem/Object;)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::System.IO.TextWriter @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.IO.TextWriter>(@__env, @__obj); @__real.WriteLine(global::net.sf.jni4net.utils.Convertor.StrongJ2CString(@__env, format), global::net.sf.jni4net.utils.Convertor.ArrayFullJ2C <object[], object>(@__env, arg)); }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); } }
private static void WriteLine26(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle buffer, int index, int count) { // ([CII)V // ([CII)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::System.IO.TextWriter @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.IO.TextWriter>(@__env, @__obj); @__real.WriteLine(global::net.sf.jni4net.utils.Convertor.ArrayPrimJ2Cchar(@__env, buffer), index, count); }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); } }
private static void Flush3(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()V // ()V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::System.IO.TextWriter @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.IO.TextWriter>(@__env, @__obj); @__real.Flush(); }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); } }
private static void WriteLine34(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle value) { // (Lsystem/Object;)V // (LSystem/Object;)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::System.IO.TextWriter @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.IO.TextWriter>(@__env, @__obj); @__real.WriteLine(global::net.sf.jni4net.utils.Convertor.FullJ2C <object>(@__env, value)); }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); } }
private static void NewLine6(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle value) { // (Ljava/lang/String;)V // (LSystem/String;)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::System.IO.TextWriter @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.IO.TextWriter>(@__env, @__obj); @__real.NewLine = global::net.sf.jni4net.utils.Convertor.StrongJ2CString(@__env, value); }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); } }
private static global::net.sf.jni4net.utils.JniHandle FormatProvider1(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()Lsystem/IFormatProvider; // ()LSystem/IFormatProvider; global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { global::System.IO.TextWriter @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.IO.TextWriter>(@__env, @__obj); @__return = global::net.sf.jni4net.utils.Convertor.FullC2J <global::System.IFormatProvider>(@__env, @__real.FormatProvider); }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); } return(@__return); }
private static global::net.sf.jni4net.utils.JniHandle NewLine5(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()Ljava/lang/String; // ()LSystem/String; global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { global::System.IO.TextWriter @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.IO.TextWriter>(@__env, @__obj); @__return = global::net.sf.jni4net.utils.Convertor.StrongC2JString(@__env, @__real.NewLine); }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); } return(@__return); }
private static global::net.sf.jni4net.utils.JniHandle Encoding4(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()Lsystem/Object; // ()LSystem/Text/Encoding; global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { global::System.IO.TextWriter @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.IO.TextWriter>(@__env, @__obj); @__return = global::net.sf.jni4net.utils.Convertor.StrongC2Jp <global::System.Text.Encoding>(@__env, @__real.Encoding); }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); } return(@__return); }
/// <summary> /// パラメータファイルをstreamにシリアライズして書き出す. /// </summary> /// <typeparam name="T">パラメータ型.シリアライズ可能な型が必要.</typeparam> /// <param name="trg">書き出す対象となるパラメータクラスor構造体</param> /// <param name="stream">書き出すStream</param> static public void WriteToStream <T>(T trg, global::System.IO.TextWriter s) { //XmlSerializerオブジェクトを作成 //オブジェクトの型を指定する global::System.Xml.Serialization.XmlSerializer serializer = new global::System.Xml.Serialization.XmlSerializer(typeof(T)); //シリアル化し、XMLファイルに保存する serializer.Serialize(s, trg); //ファイルを閉じる s.Close(); }
private static global::net.sf.jni4net.utils.JniHandle FlushAsync48(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()Lsystem/threading/tasks/Task; // ()LSystem/Threading/Tasks/Task; global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { global::System.IO.TextWriter @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.IO.TextWriter>(@__env, @__obj); @__return = global::net.sf.jni4net.utils.Convertor.StrongC2Jp <global::System.Threading.Tasks.Task>(@__env, @__real.FlushAsync()); }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); } return(@__return); }
private static global::net.sf.jni4net.utils.JniHandle WriteLineAsync46(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle buffer, int index, int count) { // ([CII)Lsystem/threading/tasks/Task; // ([CII)LSystem/Threading/Tasks/Task; global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { global::System.IO.TextWriter @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.IO.TextWriter>(@__env, @__obj); @__return = global::net.sf.jni4net.utils.Convertor.StrongC2Jp <global::System.Threading.Tasks.Task>(@__env, @__real.WriteLineAsync(global::net.sf.jni4net.utils.Convertor.ArrayPrimJ2Cchar(@__env, buffer), index, count)); }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); } return(@__return); }
private static void CloseFile() { if (_messageWriter != null) { _messageWriter.Close(); _messageWriter.Dispose(); _messageWriter = null; } if (_exceptionWriter != null) { _exceptionWriter.Close(); _exceptionWriter.Dispose(); _exceptionWriter = null; } }
internal int ProcessFile(string sourceFileName, global::System.IO.TextWriter outputStream, ref bool lastEndedSemicolon) { object[] args = new object[] { sourceFileName, outputStream, lastEndedSemicolon }; int ret = ((int)(m_privateObject.Invoke("ProcessFile", new System.Type[] { typeof(string), typeof(global::System.IO.TextWriter), typeof(bool).MakeByRefType() }, args))); lastEndedSemicolon = ((bool)(args[2])); return(ret); }
private static void LogToExceptionFile(List <LogInfo> exceptions) { StringBuilder sb = new StringBuilder(); foreach (LogInfo logInfo in exceptions) { sb.AppendFormat("{0}\t{1}\t{2}\t\r\n{3}\r\n", logInfo.LogTime, logInfo.ThreadId, ((Exception)logInfo.Message).Message, ((Exception)logInfo.Message).StackTrace); } if (_exceptionWriter == null) { string file = FilePathUtil.GetMapPath("/log/" + DateTime.Now.ToString("yyyyMMdd") + "ex." + LogFileExtendName); FileInfo fileInfo = new FileInfo(file); if (!fileInfo.Directory.Exists) { fileInfo.Directory.Create(); } _exceptionWriter = new global::System.IO.StreamWriter(file, true, Encoding.UTF8); } _exceptionWriter.Write(sb.ToString()); }
public static void SetOut(global::System.IO.TextWriter newOut) { InternalOut = newOut; }
public override void PrintTo(global::System.IO.TextWriter writer) { PrintField("topic", hasTopic, topic_, writer); PrintField("notice", hasNotice, notice_, writer); PrintField("name", hasName, name_, writer); }
public override void PrintTo(global::System.IO.TextWriter writer) { PrintField("msgId", hasMsgId, msgId_, writer); base.PrintTo(writer); }
public override void PrintTo(global::System.IO.TextWriter writer) { PrintField("id", hasId, id_, writer); }
public override void PrintTo(global::System.IO.TextWriter writer) { PrintField("id", hasId, id_, writer); PrintField("embedded", hasEmbedded, embedded_, writer); PrintField("text", hasText, text_, writer); }
internal TextWriter(global::System.IO.TextWriter textWriter) { this.textWriter = textWriter; }
public override void PrintTo(global::System.IO.TextWriter writer) { PrintField("topic", hasTopic, topic_, writer); PrintField("content", hasContent, content_, writer); PrintField("from", hasFrom, from_, writer); }
public override void PrintTo(global::System.IO.TextWriter writer) { PrintField("access_token", hasAccessToken, accessToken_, writer); PrintField("type", hasType, type_, writer); }
public override void PrintTo(global::System.IO.TextWriter writer) { PrintField("err_code", hasErrCode, errCode_, writer); PrintField("err_msg", hasErrMsg, errMsg_, writer); }
public override void PrintTo(global::System.IO.TextWriter writer) { PrintField("message", hasMessage, message_, writer); }
public override void PrintTo(global::System.IO.TextWriter writer) { PrintField("name", hasName, name_, writer); PrintField("options", options_, writer); }
public override void PrintTo(global::System.IO.TextWriter writer) { PrintField("name", hasName, name_, writer); PrintField("value", hasValue, value_, writer); }
public void Write(global::System.IO.TextWriter writer) { Write(writer, null); }
public override void PrintTo(global::System.IO.TextWriter writer) { PrintField("result", hasResult, result_, writer); PrintField("error", hasError, error_, writer); }
public override void PrintTo(global::System.IO.TextWriter writer) { PrintField("itemName", hasItemName, itemName_, writer); PrintField("itemId", hasItemId, itemId_, writer); PrintField("ids", ids_, writer); }
public override void PrintTo(global::System.IO.TextWriter writer) { PrintField("function", hasFunction, function_, writer); PrintField("output", hasOutput, output_, writer); PrintField("parameter", parameter_, writer); }
public override void PrintTo(global::System.IO.TextWriter writer) { PrintField("name", hasName, name_, writer); PrintField("response", hasResponse, response_, writer); }