Find a File Using Java

Swarali Sree
Updated on 30-Jul-2019 22:30:20

165 Views

Following example shows the way to look for a particular file in a directory by creating a File filter. Following example displays all the files having file names beginning with 'b'.ExampleLive Demoimport java.io.*; public class Main {    public static void main(String[] args) {       File dir = new File("C:");             FilenameFilter filter = new FilenameFilter() {          public boolean accept (File dir, String name) {             return name.startsWith("b");          }       };       String[] children = ... Read More

Integrating SAP with Android

V Jyothi
Updated on 30-Jul-2019 22:30:20

491 Views

SMP 3/HCPMS (SAP Cloud-based Mobile services) is the new SAP product to create enterprise mobile apps. This can be used to integrate SAP with different mobile platforms. SAP recently launched the SAP Cloud Platform mobile services- a full-featured mobile app platform in the cloud, partners gain the flexibility to build and run native and hybrid apps that integrate securely with on-premise or cloud-based systems.

Read Image Using SAP OData v2 in UI5 Application

Sravani S
Updated on 30-Jul-2019 22:30:20

529 Views

You have to use below code:img.setSrc("/path/to/my/service/UserPhotoSet('someone@gmail.com')/$value");Here you need to replace part with original path.

What is a Locale Class in Java

Sai Subramanyam
Updated on 30-Jul-2019 22:30:20

210 Views

The java.util.Locale class object represents a specific geographical, political, or cultural region. An operation that requires a Locale to perform its task is called locale-sensitive and uses the Locale to form information for the user. The locale is a mechanism for identifying objects, not a container for the objects themselves.

Connection to SAP HANA and Exposing Data in Design Studio

Govinda Sai
Updated on 30-Jul-2019 22:30:20

218 Views

There are different scenarios you can use to connect Design Studio to HANA database. It primarily depends on Design Studio installation. If you are using Design Studio locally on the system, you can connect to HANA database using an ODBC connection. When Design Studio is available via BI platform, you need to create an ODBC connection in CMC and that can be used to connect to HANA.To use ODBC connection in Design Studio, you have to create a User/System DSN.If you are using the 64-bit version of Design Studio, navigate to the following folder on your local system: C:\Windows\System32. Open ... Read More

Java as a Dynamic Language Explained

Giri Raju
Updated on 30-Jul-2019 22:30:20

2K+ Views

Java is considered to be more dynamic than C or C++ since it is designed to adapt to an evolving environment. Java programs can carry an extensive amount of run-time information that can be used to verify and resolve accesses to objects at run-time.

Unloading Tables in SAP HANA Database

Priya Pallavi
Updated on 30-Jul-2019 22:30:20

710 Views

HANA consumes lot of space in system tables/views, statistics, caches. When you unload tables, these memory areas will not be released.Check SAP Notes https://launchpad.support.sap.com/#/notes/1969700

Difference between JCoClient and JCoDestination

Priya Pallavi
Updated on 30-Jul-2019 22:30:20

737 Views

JcoDestination is the newer version (3) and JCO.client is the older version (2) of SAP Java connector Class. Along with the change of names in the classes, they have also re-written the library architecture in the new version JCoDestination. It is recommended to use the newer version JCodestination.

Check if SAP System is ABAP-based, Java, or Dual Stack

Rahul Sharma
Updated on 30-Jul-2019 22:30:20

1K+ Views

Using SAP GUI, you can only access ABAP or ABAP+Java based system. You can check at multiple places if it is a dual system.T-code: SMICM, you can checklist of services in transaction SMICM (Goto --> Services) - dual stack systems will have the J2EE services listed too. There will also be an AS Java menu in SMICM on ABAP+Java systems.

Create PDF File in Java

Sai Subramanyam
Updated on 30-Jul-2019 22:30:20

2K+ Views

You can create a PDF file using the PDF Box library. You can set the environment for pdf box by following Pdf Box Environment Tutorial. Example import java.io.IOException; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.pdmodel.PDPage; public class CreatingEmptyPdf { public static void main(String args[]) throws IOException { PDDocument document = new PDDocument(); document.addPage(new PDPage()); document.save("C:/pdfBox/BlankPdf.pdf"); System.out.println("PDF created"); document.close(); } } Output PDF created

Advertisements