`
文章列表
<!DOCTYPE NETSCAPE-Bookmark-file-1> <!-- This is an automatically generated file.      It will be read and overwritten.      DO NOT EDIT! --> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> <TITLE>Bookmarks</TITLE> <H1>Bookma ...

Util

    博客分类:
  • Java
import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.io.StringWriter; import java.net.InetAddress; import java.net.UnknownHostException; import java.sql.Connection; imp ...

DMSUtil

    博客分类:
  • Java
import java.io.ByteArrayInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.Iterator ...
import java.sql.Connection; import java.sql.DriverManager; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Properties; import oracle.jdbc.OracleDriver; import oracle.jdbc.pool.OracleOCIConnectionPool; import org.dom4j.Document; import org.dom4j ...
import java.util.regex.Matcher; import java.util.regex.Pattern; public class InvalidXMLCharacterValidator extends BaseValidator implements GracieValidator { public InvalidXMLCharacterValidator() { } /** * Validation Rule: Check the input text whether it ...
public class IntegerValidator extends BaseValidator implements GracieValidator { public IntegerValidator() { } public static final String REGEX_INTEGER = "^-?\\d+$"; /** * Validation Rule: Only to accept "-, 0-9" * @param ...
public class InputValidator extends BaseValidator implements GracieValidator { public InputValidator() { } /** * Return true when the input text is not empty * @param inputText Input string text * @return boolean Return true wh ...
public class EmailValidator extends BaseValidator implements GracieValidator { public EmailValidator(){ } public static final String REGEX_EMAIL = "^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA ...
public class FloatValidator extends BaseValidator implements GracieValidator{ public FloatValidator() { } public static final String REGEX_FLOAT = "^(-?\\d+)(\\.\\d{1,2})?$"; /** * Validation Rule: A number that the MAX digits after the deci ...
public class NumericValidator extends BaseValidator implements GracieValidator { public NumericValidator() { } public static final String REGEX_NUMERIC = "^(-?\\d+)(\\.\\d+)?$"; /** * Validation Rule: Only to accept "-, 0-9, ." ...
public class PrecisionValidator extends BaseValidator { private PrecisionValidator() { } public static final int ORACLE_NUMBER_PRECISION_RANGE_MIN = 1; public static final int ORACLE_NUMBER_PRECISION_RANGE_MAX = 38; public static final int ORACLE_NUMBER_ ...
import java.util.regex.Matcher; import java.util.regex.Pattern; public class RegexValidator extends BaseValidator implements GracieValidator { public RegexValidator() { } /** * Use regular expression for matching strings of input text * @param inpu ...
public class StringLengthValidator extends BaseValidator implements GracieValidator { /** * Return true when the input text length is in the limitation * @param inputText Input string text * @param maxLength Max length for the input text * @return bo ...
public class XssValidator extends BaseValidator { private XssValidator(){ } public static final String REGEX_XSS = "^(?!.*(<|>))[\\s\\S]*$"; /** * * @param inputText input string * @return true:false */ public static b ...
public class DigitValidator extends BaseValidator implements GracieValidator { public DigitValidator() { } public static final String REGEX_DIGIT = "^[0-9]+$"; /** * Validation Rule: Only to accept "0-9" * @param inputTex ...
Global site tag (gtag.js) - Google Analytics