Java integration notes

satya - 8/6/2020, 8:04:32 AM

What is scanner in java?

What is scanner in java?

Search for: What is scanner in java?

satya - 8/6/2020, 8:06:32 AM

reading csv files opencsv

reading csv files opencsv

Search for: reading csv files opencsv

satya - 8/6/2020, 8:07:36 AM

An article on OpenCSV

An article on OpenCSV

satya - 8/6/2020, 8:11:59 AM

alternatives to opencsv in java

alternatives to opencsv in java

Search for: alternatives to opencsv in java

satya - 8/6/2020, 8:15:24 AM

Apache commons CSV open CSV

Apache commons CSV open CSV

Search for: Apache commons CSV open CSV

satya - 8/6/2020, 8:19:26 AM

Apache Commons CSV

Apache Commons CSV

satya - 8/6/2020, 10:25:00 AM

Documentation

Documentation

satya - 8/6/2020, 5:57:09 PM

I am having migrating to JDK 9 and above

I am having migrating to JDK 9 and above

satya - 8/6/2020, 5:57:31 PM

Here are some xpath docs

Here are some xpath docs

satya - 8/6/2020, 7:13:17 PM

See if this helps from the nightmare of compiling for jdk 11 etc

See if this helps from the nightmare of compiling for jdk 11 etc

satya - 8/7/2020, 12:35:08 PM

Java util package (looking for base64 support)

Java util package (looking for base64 support)

satya - 8/7/2020, 12:36:43 PM

Base64 support in java util (java12)

Base64 support in java util (java12)

satya - 8/7/2020, 12:38:11 PM

Dealing with lack of


//previous
sun.misc.BASE64Decoder dec = new sun.misc.BASE64Decoder();
dec.decodeBuffer(userPassEncoded)

//New
import java.util.Base64
Base64.Decoder dec = Base64.getDecoder();
dec.decode(userPassEncoded)

satya - 8/7/2020, 12:56:31 PM

finally block does not complete normally

finally block does not complete normally

Search for: finally block does not complete normally

satya - 8/7/2020, 11:07:52 PM

I use oracle jdbc drivers for certain things. that was long time ago

I use oracle jdbc drivers for certain things. that was long time ago

satya - 8/7/2020, 11:08:21 PM

Choosing right oracle jdbc driver based on JDK

Choosing right oracle jdbc driver based on JDK

satya - 8/8/2020, 12:36:05 PM

Changes to: /extensions/dictionarycollectionpkg/XmlNodeDictionary.java


//Previously
import org.apache.xpath.XPathAPI;
Node node = 
  XPathAPI.selectSingleNode(DOMUtils.getRootNode(dom),xpath);


//Now
import com.sun.org.apache.xpath.internal.XPathAPI;
Node node = 
   XPathAPI.selectSingleNode(DOMUtils.getRootNode(dom),xpath);

satya - 8/8/2020, 12:37:50 PM

What are internal packages in java 9, java 11, java 12

What are internal packages in java 9, java 11, java 12

Search for: What are internal packages in java 9, java 11, java 12

satya - 8/8/2020, 12:48:37 PM

Compiling Aspire out of the JDk 8 world


* Release 3.0 Build 46: Aug 8th, 2020
 * ***************************************
 * This became aspire_integration jar (for now)
 * Compiled with JDK 12
 * 
 * Not tested at run time
 * **********************
 * 1. XML config files
 * 2. XML output of web urls
 * 3. Only compiled. Nothing is tested yet
 * 
 * what is done
 * **********************
 * 1. upgraded oracle jar file ojdbc8.jar (good for jdk8, 9, 10 etc)
 * 2. Updated class names around oracle jar file
 * 3. Added jaxb support via jax-api-2.3.1.jar
 * 4. Removed xalan jars, and jaxp jars and went with defaults
 *
 * Changed files due to oracle drivers
 * ************************************
 * /db/StoredProcedureExecutor.java 
 * /db/StoredProcedureExecutor2.java 
 * /db/rel2/StoredProcedureExecutor3.java
 * 
 * Changes due to XML/xpath/xalan
 * *************************************
 * /extensions/dictionarycollectionpkg/XmlNodeDictionary.java 
 * /xml/DOMUtils.java
 * /xml/JDOMXMLOutPutter.java
 *
 *     XPathAPI to an internal package in java.xml
 *     From: org.apache.xpath.XPathAPI
 *     To: com.sun.org.apache.xpath.internal.XPathAPI
 * 
 * Changes due to Base64
 * *********************
 * /aspire/authentication/BaseAuthenticationMethod.java
 * /servlets/DefaultSessionSupport.java
 * /servlets/DefaultSessionSupport1.java
 * /servlets/DemuxServlet.java
 * /testservlets/SnoopAuthorization.java
 * 
 * (went to java.util.Base64)

satya - 8/10/2020, 2:52:04 PM

working with apache CSV files: article

working with apache CSV files: article

satya - 8/11/2020, 11:19:37 AM

Understanding static and inner classes

Understanding static and inner classes

satya - 8/11/2020, 11:23:13 AM

get set access modifiers in java

get set access modifiers in java

Search for: get set access modifiers in java

satya - 8/11/2020, 1:41:11 PM

My notes on json and gson

My notes on json and gson

satya - 8/11/2020, 5:24:48 PM

Multi line string in Java 11

Multi line string in Java 11

Search for: Multi line string in Java 11

satya - 8/11/2020, 6:07:24 PM

Not really easy it turns out. give up for now

Not really easy it turns out. give up for now

satya - 8/11/2020, 6:10:16 PM

reading env variables in java

reading env variables in java

Search for: reading env variables in java

satya - 8/11/2020, 6:10:27 PM

Java system properties

Java system properties

satya - 8/11/2020, 6:11:50 PM

Java environment variables: System.getenv()

Java environment variables: System.getenv()

satya - 8/11/2020, 6:18:12 PM

API for getenv

API for getenv

satya - 8/11/2020, 6:18:50 PM

Note on unix this is case sensitve

So it is better to set them to all upper (or lower)

satya - 8/11/2020, 6:28:11 PM

File.separator

File.separator

Search for: File.separator

satya - 8/11/2020, 6:28:22 PM

A good resource looks like for java overall

A good resource looks like for java overall

satya - 8/11/2020, 6:29:12 PM

File.separator

File.separator windows: \ unix: /

File.pathseparator windows: ; unix :

satya - 8/11/2020, 9:31:03 PM

Working with Junit is here

Working with Junit is here

satya - 8/13/2020, 9:03:43 AM

boolean type in java

boolean type in java

Search for: boolean type in java

satya - 8/13/2020, 9:03:50 AM

here


boolean isJavaFun = true;
boolean isFishTasty = false;

satya - 8/16/2020, 1:58:27 PM

java filter method generic collections

java filter method generic collections

Search for: java filter method generic collections

satya - 8/16/2020, 2:09:03 PM

Filtering a list in java

Filtering a list in java

satya - 8/18/2020, 6:41:58 PM

java regex matching groups

java regex matching groups

Search for: java regex matching groups

satya - 8/18/2020, 7:21:35 PM

An article capturing javaregex groups

An article capturing javaregex groups

satya - 8/30/2020, 4:52:44 PM

Oracle jdbc drivers are now start with ojdbc

Oracle jdbc drivers are now start with ojdbc

Search for: Oracle jdbc drivers are now start with ojdbc

satya - 8/30/2020, 4:53:01 PM

Example oracle jdbc driver

ojdbc11.jar

satya - 8/30/2020, 4:53:46 PM

Here are my notes on public repos

Here are my notes on public repos

satya - 8/30/2020, 4:54:14 PM

Here is how you can browse in maven central

Here is how you can browse in maven central

satya - 8/31/2020, 10:30:43 AM

Notes on configuring jdbc driver for MS SQL Server are here

Notes on configuring jdbc driver for MS SQL Server are here

satya - 9/6/2020, 12:27:59 PM

JDK 11 API

JDK 11 API

Search for: JDK 11 API

satya - 9/6/2020, 12:51:37 PM

is there a default filenamefilter implementation in java

is there a default filenamefilter implementation in java

Search for: is there a default filenamefilter implementation in java

satya - 9/6/2020, 12:57:45 PM

Apache Commons IO

Apache Commons IO

Search for: Apache Commons IO

satya - 9/6/2020, 4:21:48 PM

declaring a static generic method in java

declaring a static generic method in java

Search for: declaring a static generic method in java

satya - 9/6/2020, 4:24:12 PM

Basic types in java

Basic types in java

Search for: Basic types in java

satya - 9/6/2020, 4:26:11 PM

Oracle docs on basic java data types

Oracle docs on basic java data types

satya - 9/6/2020, 4:41:46 PM

declaring a static generic method in java


public static <T> boolean isValidList(List<T> anyList)
   {
      if (anyList == null)
      {
         return false;
      }
      if (anyList.size() == 0)
      {
         return false;
      }
      return true;
   }

satya - 9/6/2020, 4:50:27 PM

Listing files in a directory is here

Listing files in a directory is here