This file contains hidden or 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
| /** | |
| * 文字列が Null かブランクであるかを問い合わせる。 | |
| * | |
| * @param {String} value 検査する文字列 | |
| * @returns {Boolean} 条件を満たしている場合 true | |
| */ | |
| function isNullOrEmpty(value) { | |
| return typeof value === "undefined" || value.length === 0; | |
| } |
This file contains hidden or 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
| /** | |
| * 改行コードを <br /> タグに置き換える。 | |
| * | |
| * @param {String} str 改行コードを含んだ文字列 | |
| * @returns {String} 置き換えた文字列 | |
| */ | |
| function lf2br(str) { | |
| return str.replace(/\r?\n/g, "<br />"); | |
| } |
This file contains hidden or 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 net.tomoyamkung.org.apache.commons.io.filefilter; | |
| import static org.hamcrest.CoreMatchers.*; | |
| import static org.junit.Assert.*; | |
| import java.io.File; | |
| import java.util.Calendar; | |
| import java.util.Date; | |
| import org.apache.commons.io.filefilter.AgeFileFilter; |
This file contains hidden or 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 net.tomoyamkung.org.apache.commons.io.filefilter; | |
| import static org.hamcrest.CoreMatchers.*; | |
| import static org.junit.Assert.*; | |
| import java.io.File; | |
| import org.apache.commons.io.filefilter.SizeFileFilter; | |
| import org.junit.Before; | |
| import org.junit.Test; |
This file contains hidden or 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 net.tomoyamkung.org.apache.commons.io.filefilter; | |
| import static org.hamcrest.CoreMatchers.*; | |
| import static org.junit.Assert.*; | |
| import java.io.File; | |
| import org.apache.commons.io.filefilter.DirectoryFileFilter; | |
| import org.junit.Before; | |
| import org.junit.Test; |
This file contains hidden or 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 net.tomoyamkung.commons.io; | |
| import static org.hamcrest.CoreMatchers.*; | |
| import static org.junit.Assert.*; | |
| import java.io.FileNotFoundException; | |
| import java.io.FileReader; | |
| import java.io.Reader; | |
| import org.apache.commons.io.LineIterator; |
This file contains hidden or 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 net.tomoyamkung.org.apache.commons.io.filefilter; | |
| import static org.hamcrest.CoreMatchers.*; | |
| import static org.junit.Assert.*; | |
| import java.io.File; | |
| import org.apache.commons.io.filefilter.SuffixFileFilter; | |
| import org.junit.Before; | |
| import org.junit.Test; |
This file contains hidden or 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 net.tomoyamkung.commons.io.fileutils; | |
| import static org.hamcrest.CoreMatchers.*; | |
| import static org.junit.Assert.*; | |
| import java.io.File; | |
| import java.util.Iterator; | |
| import org.apache.commons.io.FileUtils; | |
| import org.junit.Test; |
This file contains hidden or 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 net.tomoyamkung; | |
| import java.io.File; | |
| import java.io.FilenameFilter; | |
| /** | |
| * 指定した拡張子と一致するファイルを取得するフィルタクラス。 | |
| * | |
| * @author tomoyamkung | |
| * |
This file contains hidden or 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
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import org.apache.log4j.Logger; | |
| /** | |
| * プロセスの起動を監視するクラス。 | |
| * | |
| * @author tomoyamkung |