- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 66 for Try (0.21 sec)
-
src/main/java/org/codelibs/core/sql/PreparedStatementUtil.java
* {@link SQLException}が発生した場合 */ public static ResultSet executeQuery(final PreparedStatement ps) throws SQLRuntimeException { assertArgumentNotNull("ps", ps); try { return ps.executeQuery(); } catch (final SQLException ex) { throw new SQLRuntimeException(ex); } } /** * 更新を実行します。 * * @param ps
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/xml/DocumentBuilderFactoryUtil.java
} public static DocumentBuilderFactory newInstance(final boolean external) { final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); if (!external) { try { factory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, ""); factory.setAttribute(XMLConstants.ACCESS_EXTERNAL_SCHEMA, ""); } catch (final Exception e) {
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) -
src/main/java/org/codelibs/core/zip/ZipInputStreamUtil.java
* @return {@link ZipEntry} * @see ZipInputStream#getNextEntry() */ public static ZipEntry getNextEntry(final ZipInputStream zis) { assertArgumentNotNull("zis", zis); try { return zis.getNextEntry(); } catch (final IOException e) { throw new IORuntimeException(e); } } /** * {@link ZipInputStream#reset()}の例外処理をラップするメソッドです。
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 2.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java
public void setValue(final Object target, final Object value) { assertArgumentNotNull("target", target); try { final Object convertedValue = convertIfNeed(value); assertState(writable, propertyName + " is not writable."); if (hasWriteMethod()) { try { MethodUtil.invoke(writeMethod, target, convertedValue); } catch (final Throwable t) {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 15.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/crypto/CachedCipher.java
try { return Base64Util.encode(encrypto(text.getBytes(charsetName))); } catch (final UnsupportedEncodingException e) { throw new UnsupportedEncodingRuntimeException(e); } } public byte[] decrypto(final byte[] data) { final Cipher cipher = pollDecryptoCipher(); byte[] decrypted; try {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 8.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/sql/StatementUtil.java
*/ public static boolean execute(final Statement statement, final String sql) { assertArgumentNotNull("statement", statement); assertArgumentNotEmpty("sql", sql); try { return statement.execute(sql); } catch (final SQLException ex) { throw new SQLRuntimeException(ex); } } /** * フェッチサイズを設定します。 *
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 5.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/InputStreamUtilTest.java
/** * @throws Exception */ public void testGetBytes() throws Exception { final InputStream is = ResourceUtil.getResourceAsStream(StringUtil.replace(getClass().getName(), ".", "/") + ".class"); try { assertNotNull("1", InputStreamUtil.getBytes(is)); } finally { is.close(); } }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/OutputStreamUtil.java
* @return ファイルへ出力する{@link FileOutputStream} * @see FileOutputStream#FileOutputStream(File) */ public static FileOutputStream create(final File file) { assertArgumentNotNull("file", file); try { return new FileOutputStream(file); } catch (final IOException e) { throw new IORuntimeException(e); } } /** * {@link OutputStream}をflushします。 *
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/test/java/org/codelibs/core/collection/SLinkedListTest.java
assertThat(list.getEntry(1).getElement(), is("2")); assertThat(list.getEntry(2).getElement(), is("3")); try { list.getEntry(-1); fail(); } catch (final ClIndexOutOfBoundsException ex) { System.out.println(ex); } try { list.getEntry(3); fail(); } catch (final ClIndexOutOfBoundsException ex) {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 8.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/net/URLUtil.java
* URL。{@literal null}であってはいけません * @return URLが表すリソースを読み込むための{@link InputStream} */ public static InputStream openStream(final URL url) { assertArgumentNotNull("url", url); try { final URLConnection connection = url.openConnection(); connection.setUseCaches(false); return connection.getInputStream(); } catch (final IOException e) {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 7.3K bytes - Viewed (0)