• skip to content

TheFreyers.net

User Tools

  • Login

Site Tools

  • Recent changes
  • Media Manager
  • Sitemap
You are here: Welcome » class

class

Search

You can find the results of your search below. If you didn't find what you were looking for, you can create or edit the page named after your query with the appropriate tool.

Results

Matching pagenames:

  • Java Class Loaders
Handling Compiler Warnings: 20 Hits
mpiler Warnings ====== ===== Unchecked Cast using Class.forName ===== I have a codebase that uses the the... , I use a utility method to retrieve the delegate class name from my database using a key, and then use the ''Class.forName'' method to retrieve the class object. Here's a very simple example, without the utility function: <code java> class ForNameTest { public static void main(String[] args) {
Java Class Loaders: 10 Hits
====== Java Class Loaders ====== Most java programs don't need to manipulate the JVM class loader. But t... e encrypted on disk. In either case, the default class loader must be replaced with a special-purpose on... ment our own classloader? ===== Implementing a Class Loader ===== So create a basic class loader like ... .net.URL; import java.net.URLClassLoader; public class DoNothingClassLoader extends ClassLoader { publ
Experiment #3: 8 Hits
/*..package and import statements here..*/ public class Artist { private transient Nodeid neoid; ... /*..package and import statements here..*/ public class Album { private transient Nodeid neoid; @... /*..package and import statements here..*/ public class Song { private transient Nodeid neoid; @n... org.neo4j.kernel.EmbeddedGraphDatabase; public class Jo4NeoPerformanceExercise { private static i
Reading the Body of an Email: 6 Hits
At the same time, I encapsulated the method in a class. The class takes an descendant of [[http://www.b... et/rim/blackberry/api/mail/Message.html|Message]] class as a parameter. And I added a ''getText()'' method to make it easy to retrieve the text. The class can be used like this: <code java> EmailPr... RIM now looks like this: <code java> private class EmailProcessor { private boolean _has
The Dog Page: 4 Hits
got a treat instead. This seemed fairly easy in class. Obedience topic #6: "Drop it". Similar to the... to watch (new course attendees, I imagine). The class was challenged with a task, and each owner would ... intermediate training. ==== Week 1 ==== Our new class had only 3 other dogs on the first day--the train... ths.jpg?204×153 }} During our advanced training class, we realized that Sunshine was sitting with her b
Writing to separate log files with Log4J: 4 Hits
ication log file--> <appender name="MainLogFile" class="org.apache.log4j.FileAppender"> <param name="F... <param name="Threshold" value="INFO" /> <layout class="org.apache.log4j.PatternLayout"> <param name=... stats logging --> <appender name="StatsLogFile" class="org.apache.log4j.FileAppender"> <param name="F... e="DatePattern" value="'.'yyyy-MM-dd"/> <layout class="org.apache.log4j.PatternLayout"> <param name=
Formatting Syntax: 4 Hits
/nowiki>''. <code java> /** * The HelloWorldApp class implements an application that * simply displays "Hello World!" to the standard output. */ class HelloWorldApp { public static void main(String... enerated inline HTML)'; </php> <PHP> echo '<table class="inline"><tr><td>The same, but inside a block lev... ; echo '(inline HTML)'; </php> <PHP> echo '<table class="inline"><tr><td>The same, but inside a block lev
Thread Example: 3 Hits
l need to add a package statement and located the class in the appropriate directory in your classpath. ... t java.text.SimpleDateFormat; import java.util.*; class threads { public static String[] names = { "... new T1(i, names[i]); t.start(); } } } class T1 extends Thread { public int threadID =
Assert example: 3 Hits
le: <code java> package com.freyer.test; public class AssertionTest { /** * @param args * No args... AssertionTest --> disable assertions by class name or java -enableassertions com.freyer.test.... .AssertionTest --> enable assertions by class name This syntax allows you to active and deact
XML Schema Validator: 3 Hits
couldn't find anything, so I wrote my own. This class parses an XML file and validates it against its D... mport org.xml.sax.*; import javax.xml.parsers.*; class XMLValidator implements ErrorHandler { private b... ing filename) { try { // setup SAX parser Class.forName("org.apache.xerces.parsers.SAXParser");
JavaOne 2008, Day 1: 2 Hits
javafxc, javafx, javafxdoc * "Time" is a first-class function, so KeyFrame animation isi provided to m... s to the JVM * scripting languages become first-class citizens in the JVM * annotations become more p
Visual Calendar Servlet: 2 Hits
is servlet depends on my [[technology:datetools]] class. <code java> /** * Insert the type's descriptio... o.*; import java.util.*; import DateTools; public class CFWebCalendar extends javax.servlet.http.HttpServ
Experiment #2: 2 Hits
t org.neo4j.kernel.EmbeddedGraphDatabase; public class Neo4JPerformanceExercise { //static constant... ivate static final String ZIP_KEY = "zip"; //class variables private static GraphDatabaseService
Java Tutorials: 2 Hits
let]] * [[assert_example|Assert Example]] * [[class_loaders|Class Loaders]] ====== Java Resources =
DateTools: 2 Hits
Easter Date Calculations: 1 Hits
How Long has a Process Been Alive?: 1 Hits
Community One: 1 Hits
Finding Too-New Code: 1 Hits
Spreadsheet Reader: 1 Hits

Page Tools

  • Show pagesource
  • Old revisions
  • Backlinks
  • Back to top
Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki