This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jp.seraphyware.example.java8learn.json; | |
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.DataInputStream; | |
import java.io.DataOutputStream; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.Base64; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jp.seraphyware.example.java8learn.json; | |
import java.io.IOException; | |
import java.util.Date; | |
import java.util.HashMap; | |
import java.util.Map; | |
import com.fasterxml.jackson.core.JsonGenerator; | |
import com.fasterxml.jackson.core.JsonProcessingException; | |
import com.fasterxml.jackson.databind.DeserializationContext; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jp.seraphyware.example.java8learn.security; | |
import java.io.InputStream; | |
import java.nio.charset.StandardCharsets; | |
import java.security.KeyStore; | |
import java.security.PrivateKey; | |
import java.security.cert.CertificateFactory; | |
import java.security.cert.X509Certificate; | |
import java.util.Base64; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jp.seraphyware.example.java8learn.security; | |
import java.io.InputStream; | |
import java.security.KeyStore; | |
import java.security.PrivateKey; | |
import java.security.Signature; | |
import java.security.cert.CertificateFactory; | |
import java.security.cert.X509Certificate; | |
import java.util.Base64; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jp.seraphyware.example.java8learn.security; | |
import java.io.InputStream; | |
import java.security.KeyStore; | |
import java.security.PrivateKey; | |
import java.security.Signature; | |
import java.security.cert.CertificateFactory; | |
import java.security.cert.X509Certificate; | |
import java.util.Base64; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jp.seraphyware.example | |
import java.io.IOException | |
import org.junit.Test | |
import jp.seraphyware.example.ScalaTryWithResourcesExample._ | |
/** | |
* テストクラス |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo off | |
rem ==================================================================== | |
rem バッチファイルがExplorerかTerminalのどちらで起動されたか判定する方法 | |
rem ==================================================================== | |
rem | |
rem %cmdcmdline%環境変数にはシェル起動時のコマンドラインが格納されている | |
rem explorerから起動した場合は、 | |
rem C:\WINDOWS\system32\cmd.exe /c ""C:\Users\archa\Desktop\determine_launch_from_explorer.bat" " | |
rem のような内容となり、 | |
rem ターミナルからバッチファイルを指定した場合は |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jp.seraphyware.example.lava8learn.jfx; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Objects; | |
import javafx.application.Application; | |
import javafx.application.Platform; | |
import javafx.beans.InvalidationListener; | |
import javafx.beans.value.ChangeListener; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void redirectLogs() { | |
// 標準出力・標準エラー出力のログへの転送 | |
Logger stdoutLog = LoggerFactory.getLogger("console.out"); | |
Logger stderrLog = LoggerFactory.getLogger("console.err"); | |
System.setOut(createLogStream(stdoutLog::info)); | |
System.setErr(createLogStream(stderrLog::info)); | |
} | |
/** | |
* 標準出力に差し替え可能なプリントストリームを作成します.<br> |