- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 185 for _new (0.21 sec)
-
src/test/java/org/codelibs/core/exception/SRuntimeExceptionTest.java
} /** * @throws Exception */ @Test public void testGetCause() throws Exception { final Throwable t = new NullPointerException("test"); final ClRuntimeException ex = new ClRuntimeException("ECL0017", asArray(t), t); assertThat(ex.getCause(), is(t)); ex.printStackTrace(); }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/net/UuidUtil.java
/** * UUIDを作成するユーティリティです。 * * @author higa */ public abstract class UuidUtil { private static final byte[] DEFAULT_ADDRESS = new byte[] { (byte) 127, (byte) 0, (byte) 0, (byte) 1 }; private static final SecureRandom RANDOM = new SecureRandom(); private static final String BASE = StringUtil.toHex(getAddress()) + StringUtil.toHex(System.identityHashCode(RANDOM)); /** * UUIDを作成します。
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/CloseableUtilTest.java
/** * @author shot */ public class CloseableUtilTest { /** * @throws Exception */ @Test public void testClose() throws Exception { final NotifyOutputStream out = new NotifyOutputStream(); CloseableUtil.close(out); assertThat(out.getNotify(), is("closed")); } /** * @throws Exception */ @Test
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 2.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/xml/SAXParserFactoryUtil.java
} catch (SAXNotRecognizedException | SAXNotSupportedException e) { throw new SAXRuntimeException(e); } catch (final ParserConfigurationException e) { throw new ParserConfigurationRuntimeException(e); } return factory; } /** * デフォルト構成の{@link SAXParserFactory}を使って{@link SAXParser}の新しいインスタンスを作成します。
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 3.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/CopyUtil.java
* @return コピーした文字数 */ public static int copy(final byte[] in, final Writer out) { assertArgumentNotNull("in", in); assertArgumentNotNull("out", out); final Reader is = new InputStreamReader(new ByteArrayInputStream(in)); return copyInternal(is, wrap(out)); } /** * 指定されたエンコーディングでバイト配列からライターへコピーします。 * <p> * ライターはクローズされません。 * </p> *
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 52.4K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/ResourceTraversalTest.java
final URL classURL = ResourceUtil.getResource(classFilePath); final URL jarURL = new File(JarFileUtil.toJarFilePath(classURL)).toURI().toURL(); ResourceTraversalUtil.forEach(new ZipInputStream(jarURL.openStream()), (ResourceHandler) (path, is) -> { try { if (count < 10) { System.out.println(path);
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/security/MessageDigestUtil.java
try { msgDigest.update(text.getBytes("UTF-8")); } catch (final UnsupportedEncodingException e) { throw new ClIllegalStateException(e); } final byte[] digest = msgDigest.digest(); final StringBuilder buffer = new StringBuilder(200); for (final byte element : digest) { final String tmp = Integer.toHexString(element & 0xff);
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 3.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/exception/SIndexOutOfBoundsExceptionTest.java
* . */ @Test public void testSIndexOutOfBoundsException() { final ClIndexOutOfBoundsException clIndexOutOfBoundsException = new ClIndexOutOfBoundsException(); assertThat(clIndexOutOfBoundsException, is(notNullValue())); } /** * Test method for
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/misc/LocaleUtil.java
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/exception/SQLRuntimeException.java
* 本当のメッセージを返します。 * * @param cause * 原因となった例外 * @return 本当のメッセージ */ protected static String getRealMessage(final SQLException cause) { final StringBuilder buf = new StringBuilder(256); buf.append(cause.getMessage()).append(" : ["); SQLException next = cause.getNextException(); while (next != null) {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 2.6K bytes - Viewed (0)