Example #1
0
 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); }
 }
Example #2
0
 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); }
 }
Example #3
0
 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); }
 }
Example #4
0
 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); }
 }
Example #5
0
 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); }
 }
Example #6
0
 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);
 }
Example #7
0
 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);
 }
Example #8
0
 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();
        }
Example #10
0
 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);
 }
Example #11
0
 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);
 }
Example #12
0
 private static void CloseFile()
 {
     if (_messageWriter != null)
     {
         _messageWriter.Close();
         _messageWriter.Dispose();
         _messageWriter = null;
     }
     if (_exceptionWriter != null)
     {
         _exceptionWriter.Close();
         _exceptionWriter.Dispose();
         _exceptionWriter = null;
     }
 }
Example #13
0
        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);
        }
Example #14
0
        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());
        }
Example #15
0
 public static void SetOut(global::System.IO.TextWriter newOut)
 {
     InternalOut = newOut;
 }
Example #16
0
 public override void PrintTo(global::System.IO.TextWriter writer)
 {
     PrintField("topic", hasTopic, topic_, writer);
     PrintField("notice", hasNotice, notice_, writer);
     PrintField("name", hasName, name_, writer);
 }
Example #17
0
 public override void PrintTo(global::System.IO.TextWriter writer)
 {
     PrintField("msgId", hasMsgId, msgId_, writer);
     base.PrintTo(writer);
 }
Example #18
0
 public override void PrintTo(global::System.IO.TextWriter writer)
 {
     PrintField("id", hasId, id_, writer);
 }
Example #19
0
 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;
		}
Example #21
0
 public override void PrintTo(global::System.IO.TextWriter writer)
 {
     PrintField("topic", hasTopic, topic_, writer);
     PrintField("content", hasContent, content_, writer);
     PrintField("from", hasFrom, from_, writer);
 }
Example #22
0
 public static void SetOut(global::System.IO.TextWriter newOut)
 {
     InternalOut = newOut;
 }
 public override void PrintTo(global::System.IO.TextWriter writer)
 {
     PrintField("access_token", hasAccessToken, accessToken_, writer);
     PrintField("type", hasType, type_, writer);
 }
Example #24
0
 public override void PrintTo(global::System.IO.TextWriter writer)
 {
     PrintField("err_code", hasErrCode, errCode_, writer);
     PrintField("err_msg", hasErrMsg, errMsg_, writer);
 }
Example #25
0
 public override void PrintTo(global::System.IO.TextWriter writer)
 {
     PrintField("message", hasMessage, message_, writer);
 }
Example #26
0
 public override void PrintTo(global::System.IO.TextWriter writer)
 {
     PrintField("name", hasName, name_, writer);
     PrintField("options", options_, writer);
 }
Example #27
0
 public override void PrintTo(global::System.IO.TextWriter writer)
 {
     PrintField("name", hasName, name_, writer);
     PrintField("value", hasValue, value_, writer);
 }
Example #28
0
 public void Write(global::System.IO.TextWriter writer)
 {
     Write(writer, null);
 }
Example #29
0
 public override void PrintTo(global::System.IO.TextWriter writer)
 {
     PrintField("result", hasResult, result_, writer);
     PrintField("error", hasError, error_, writer);
 }
Example #30
0
 public override void PrintTo(global::System.IO.TextWriter writer)
 {
     PrintField("itemName", hasItemName, itemName_, writer);
     PrintField("itemId", hasItemId, itemId_, writer);
     PrintField("ids", ids_, writer);
 }
Example #31
0
 public override void PrintTo(global::System.IO.TextWriter writer)
 {
     PrintField("function", hasFunction, function_, writer);
     PrintField("output", hasOutput, output_, writer);
     PrintField("parameter", parameter_, writer);
 }
Example #32
0
 public override void PrintTo(global::System.IO.TextWriter writer)
 {
     PrintField("name", hasName, name_, writer);
     PrintField("response", hasResponse, response_, writer);
 }