[Fb-contrib-commit] SF.net SVN: fb-contrib:[1651] trunk/fb-contrib/samples/BED_Sample.java
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2011-03-01 06:46:36
|
Revision: 1651
http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1651&view=rev
Author: dbrosius
Date: 2011-03-01 06:46:30 +0000 (Tue, 01 Mar 2011)
Log Message:
-----------
add fp for BED
Modified Paths:
--------------
trunk/fb-contrib/samples/BED_Sample.java
Modified: trunk/fb-contrib/samples/BED_Sample.java
===================================================================
--- trunk/fb-contrib/samples/BED_Sample.java 2011-01-22 01:20:16 UTC (rev 1650)
+++ trunk/fb-contrib/samples/BED_Sample.java 2011-03-01 06:46:30 UTC (rev 1651)
@@ -12,40 +12,55 @@
@SuppressWarnings("all")
-public class BED_Sample
+public class BED_Sample
{
+ IOException ioe;
+
public BED_Sample() throws IOException
{
-
+
}
-
+
public BED_Sample(String name) throws NamingException
{
Hashtable<String, String> env = new Hashtable<String, String>();
env.put("name", name);
DirContext context = new InitialDirContext(env);
}
-
+
private void badThrow() throws SQLException
{
-
+
}
-
+
public static void badStatic() throws DataFormatException
{
-
+
}
-
+
public static void doIt() throws SQLException, IOException
{
InputStream is = new FileInputStream("c:\\temp.txt");
}
-
+
public static void fp() throws Exception
{
InputStream is = new FileInputStream("c:\\temp.txt");
}
-
+
+ private void fpThrowField(boolean b) throws IOException
+ {
+ if (b)
+ {
+ throw ioe;
+ }
+ else
+ {
+ IOException e = ioe;
+ throw ioe;
+ }
+ }
+
public Object iAmCreatingAnObject() {
return new Object() {
private byte[] iHaveToThrowAnException() throws IOException {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|