{"id":6869,"date":"2013-02-20T22:47:02","date_gmt":"2013-02-20T13:47:02","guid":{"rendered":"http:\/\/arison.jp\/blog\/?p=6869"},"modified":"2017-02-25T22:08:23","modified_gmt":"2017-02-25T13:08:23","slug":"string-type-check","status":"publish","type":"post","link":"https:\/\/arison.jp\/blog\/2013\/02\/20\/string-type-check\/","title":{"rendered":"\u3010Java\u3011\u6587\u5b57\u7a2e\u5225\u306e\u30c1\u30a7\u30c3\u30af"},"content":{"rendered":"<p>\u6587\u5b57\u7a2e\u5225\u306e\u30c1\u30a7\u30c3\u30af<\/p>\n<p>\u30e6\u30cb\u30b3\u30fc\u30c9\u306e\u6c4e\u7528\u6587\u5b57\u3060\u3051\u304b\u3001\u6570\u5b57\u3082\u542b\u3080\u306e\u304b\u3001\u6570\u5b57\u3060\u3051\u306a\u306e\u304b\u3001\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3082\u542b\u3080\u306e\u304b\u3001\u7a7a\u767d\u6587\u5b57\u3060\u3051\u304b\u3002<\/p>\n<p>\u3010\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3092\u542b\u3080\u5834\u5408\u3011<br \/>\nSpace\u3092\u30e1\u30bd\u30c3\u30c9\u306e\u5f8c\u308d\u306b\u3064\u3051\u308b\u3068\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3082\u542b\u3081\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>[java]<br \/>\nisAlpha<br \/>\nisAlphanumeric<br \/>\nisNumeric<\/p>\n<p>isAlphaSpace<br \/>\nisAlphanumericSpace<br \/>\nisNumericSpace<\/p>\n<p>isWhitespace<br \/>\n[\/java]<br \/>\n<!--more--><\/p>\n<hr \/>\n<h3>isAlpha<\/h3>\n<p>public static boolean isAlpha(java.lang.String str)<br \/>\n<span class=\"font20px\">\u30c1\u30a7\u30c3\u30af\u5bfe\u8c61\u306e\u6587\u5b57\u5217\u304c\u3001\u30e6\u30cb\u30b3\u30fc\u30c9\u306e\u6c4e\u7528\u6587\u5b57\u3060\u3051\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<\/span><\/p>\n<hr \/>\n<h3>isAlphanumeric<\/h3>\n<p>public static boolean isAlphanumeric(java.lang.String str)<br \/>\n<span class=\"font20px\">\u30c1\u30a7\u30c3\u30af\u5bfe\u8c61\u306e\u6587\u5b57\u5217\u304c\u3001\u30e6\u30cb\u30b3\u30fc\u30c9\u306e\u6c4e\u7528\u6587\u5b57\u3068\u6570\u5b57\u3060\u3051\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<\/span><\/p>\n<hr \/>\n<h3>isAsciiPrintable<\/h3>\n<p>public static boolean isAsciiPrintable(java.lang.String str)<br \/>\n<span class=\"font20px\">\u30c1\u30a7\u30c3\u30af\u5bfe\u8c61\u306e\u6587\u5b57\u5217\u304c\u3001ASCII\u6587\u5b57\u3060\u3051\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<\/span><\/p>\n<hr \/>\n<h3>isNumeric<\/h3>\n<p>public static boolean isNumeric(java.lang.String str)<br \/>\n<span class=\"font20px\">\u30c1\u30a7\u30c3\u30af\u5bfe\u8c61\u306e\u6587\u5b57\u5217\u304c\u3001\u6570\u5b57\u3060\u3051\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<\/span><\/p>\n<p>\u3010\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3092\u542b\u3080\u5834\u5408\u3011<br \/>\nSpace\u3092\u30e1\u30bd\u30c3\u30c9\u306e\u5f8c\u308d\u306b\u3064\u3051\u308b\u3068\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3082\u542b\u3081\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr \/>\n<h3>isAlphaSpace<\/h3>\n<p>public static boolean isAlphaSpace(java.lang.String str)<br \/>\n<span class=\"font20px\">\u30c1\u30a7\u30c3\u30af\u5bfe\u8c61\u306e\u6587\u5b57\u5217\u304c\u3001\u30e6\u30cb\u30b3\u30fc\u30c9\u306e\u6c4e\u7528\u6587\u5b57\u3068\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3060\u3051\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<\/span><\/p>\n<hr \/>\n<h3>isAlphanumericSpace<\/h3>\n<p>public static boolean isAlphanumericSpace(java.lang.String str)<br \/>\n<span class=\"font20px\">\u30c1\u30a7\u30c3\u30af\u5bfe\u8c61\u306e\u6587\u5b57\u5217\u304c\u3001\u30e6\u30cb\u30b3\u30fc\u30c9\u306e\u6c4e\u7528\u6587\u5b57\u3068\u6570\u5b57\u3068\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3060\u3051\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<\/span><\/p>\n<hr \/>\n<h3>isNumericSpace<\/h3>\n<p>public static boolean isNumericSpace(java.lang.String str)<br \/>\n<span class=\"font20px\">\u30c1\u30a7\u30c3\u30af\u5bfe\u8c61\u306e\u6587\u5b57\u5217\u304c\u3001\u6570\u5b57\u3068\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3060\u3051\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<\/span><\/p>\n<hr \/>\n<h3>isWhitespace<\/h3>\n<p>public static boolean isWhitespace(java.lang.String str)<br \/>\n<span class=\"font20px\">\u30c1\u30a7\u30c3\u30af\u5bfe\u8c61\u306e\u6587\u5b57\u5217\u304c\u3001\u7a7a\u767d\u6587\u5b57\u3060\u3051\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<\/span><\/p>\n<hr \/>\n<p>\u53c2\u8003\u30b5\u30a4\u30c8<\/p>\n<p>Apache Commons Lang \u2013 StringUtils\uff08IsAlpha &#8211; IsNumeric &#8211; IsWhitespace &#8211; IsAsciiPrintable\uff09  TK Factory<br \/>\n<a href=\"http:\/\/tk-factory.net\/wordpress\/?p=1454\" title=\"Apache Commons Lang \u2013 StringUtils\uff08IsAlpha - IsNumeric - IsWhitespace - IsAsciiPrintable\uff09  TK Factory\">http:\/\/tk-factory.net\/wordpress\/?p=1454<\/a><\/p>\n<p>\u6587\u5b57\u5217\u306e\u5927\u6587\u5b57\u30fb\u5c0f\u6587\u5b57\u5909\u63db<br \/>\nApache Commons Lang \u2013 StringUtils\uff08UpperCase &#8211; LowerCase &#8211; SwapCase &#8211; Capitalize &#8211; Uncapitalize\uff09  TK Factory<br \/>\n<a href=\"http:\/\/tk-factory.net\/wordpress\/?p=1452\" title=\"Apache Commons Lang \u2013 StringUtils\uff08UpperCase - LowerCase - SwapCase - Capitalize - Uncapitalize\uff09  TK Factory\">http:\/\/tk-factory.net\/wordpress\/?p=1452<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u5b57\u7a2e\u5225\u306e\u30c1\u30a7\u30c3\u30af \u30e6\u30cb\u30b3\u30fc\u30c9\u306e\u6c4e\u7528\u6587\u5b57\u3060\u3051\u304b\u3001\u6570\u5b57\u3082\u542b\u3080\u306e\u304b\u3001\u6570\u5b57\u3060\u3051\u306a\u306e\u304b\u3001\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3082\u542b\u3080\u306e\u304b\u3001\u7a7a\u767d\u6587\u5b57\u3060\u3051\u304b\u3002 \u3010\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3092\u542b\u3080\u5834\u5408\u3011 Space\u3092\u30e1\u30bd\u30c3\u30c9\u306e\u5f8c\u308d\u306b\u3064\u3051\u308b\u3068\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3082\u542b\u3081\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":17178,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,4],"tags":[703],"class_list":["post-6869","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","category-diary","tag-java"],"_links":{"self":[{"href":"https:\/\/arison.jp\/blog\/wp-json\/wp\/v2\/posts\/6869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arison.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arison.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arison.jp\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/arison.jp\/blog\/wp-json\/wp\/v2\/comments?post=6869"}],"version-history":[{"count":0,"href":"https:\/\/arison.jp\/blog\/wp-json\/wp\/v2\/posts\/6869\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arison.jp\/blog\/wp-json\/wp\/v2\/media\/17178"}],"wp:attachment":[{"href":"https:\/\/arison.jp\/blog\/wp-json\/wp\/v2\/media?parent=6869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arison.jp\/blog\/wp-json\/wp\/v2\/categories?post=6869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arison.jp\/blog\/wp-json\/wp\/v2\/tags?post=6869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}