LogoLogo
v7.0.0
v7.0.0
  • TotalCross Overview
  • TotalCross Javadoc
  • TotalCross Changelog
  • Roadmap
  • Documentation
    • Getting Started
      • First embedded project with TotalCross
    • Components
      • Accordion
      • Aligned Labels
      • Button
      • Check
      • ComboBox
      • Dynamic Scroll
      • Edit
      • Floating Button
      • Gpiod
      • Grid
      • GridContainer
      • Image
      • ImageControl
      • ImageList
      • Label
      • Material Icons
      • Material Window
      • MessageBox
      • Multi Edit
      • Progress Bar
      • Progress Box
      • Radio
      • Radio Group
      • Scroll Container
      • Side Menu
      • Slider
      • Sliding Window
      • Spin List
      • Spinner
      • Switch
      • Tabbed Container
      • Velocimeter
    • APIs
      • API Overview
      • API Rest
      • Asynchronous Task
      • Camera
      • Control
        • Main Window
        • Window
        • Container
      • GPS
      • HTTPS and SSL
      • JSON
      • Maps
        • Maps - Deprecated
        • Static Map
      • Material Design Standards
      • Ninepath
      • Notifications
      • PrinterManager
      • Push Notification Firebase
      • Scanner
      • SOAP
      • Socket
      • SocketServer
      • SQLite Encryption
      • QR Code Generator
      • totalcross.sys
      • Youtube API
    • Creating an Issue
    • Contributing
      • Branch workflow
      • Writing documentation
    • Guides
      • App Architecture
        • Suggested Architecture
        • Why do Design Patterns help with the application's organization?
          • MVC Architecture Pattern
          • Template Pattern
          • Data Persistence: DAO Pattern.
        • Separation of concepts: What is the best way to create UI interfaces?
        • Positioning
          • Manual Positioning
        • Relative Positioning
        • Best practices to improve project maintenance
      • Device Simulator
      • Package your app from scratch
        • TotalCross SDK
        • Environment Variables in IDE
          • Eclipse
          • IntelliJ
        • Deploy your app with a dependecy TC
        • Deploy iOS
          • Using Development certificate to test your apps
      • Understanding TotalCross for Linux ARM
      • Running C++ applications with TotalCross
      • Web Services
    • Miscelaneous
      • Java JDK 8
      • Maven
      • Installing Visual Studio Code
    • FAQ
      • IMEI in Android 10
Powered by GitBook
On this page
  • TotalCross Packages
  • totalcross.crypto
  • totalcross.db e totalcross.sql
  • totalcross.io
  • totalcross.json
  • totalcross.map
  • totalcross.net
  • totalcross.phone
  • totalcross.sys
  • totalcross.unit
  • totalcross.util
  • totalcross.xml
  • References

Was this helpful?

  1. Documentation
  2. APIs

API Overview

Short description about the Totalcross API

TotalCross Packages

totalcross.crypto

The classes used by TotalCross to work with encryption are:

  • Cipher: AES e RSA;

  • Digest: MD5, SHA1, SHA256 ;

  • Signature: PKCS1.

totalcross.db e totalcross.sql

The totalcross.db package has SQLite Java implementation, the most widely used portable database in the world. Allows you to use SQL commands to manipulate data files lightly and with low memory consumption.

The totalcross.sql package has JDBC implementation for use with SQLite - SQLiteUtil - as you can see in the code example below:

public class DatabaseManager {

	public static SQLiteUtil sqliteUtil;

	static {
		try {
			sqliteUtil = new SQLiteUtil(Settings.appPath, "test.db");
			Statement st = sqliteUtil.con().createStatement();
			st.execute("create table if not exists person (cpf varchar)");
			st.close();

		} catch (SQLException e) {
			e.printStackTrace();
		}
	}
}

To learn more about SQLite, how to implement SQLite Useful, creating applications with database and CRUD just read the link session below:

totalcross.io

The totalcross.io package concentrates the classes used in input and output.

  • ByteArrayStream

  • DataStream

  • File

    • BufferedStream

  • LineReader

  • device.bluetooth

  • device.gps

  • device.printer

  • device.scanner

totalcross.json

In this class we have the json library in Java, a lot used in the creation of Web Services through Rest. To understand better, visit the session below:

totalcross.map

Totalcross.map supports GoogleMaps and Waze. You can better understand by clicking on the session below:

totalcross.net

It is in the package totalcross.net where the connection classes are. Are they:

  • Socket FTP;

  • HTTPStream;

  • ServerSocket;

  • mail (pop3);

  • SSL

totalcross.phone

The classes responsible for handling telephones are:

  • CellInfo

  • Dial

  • SMS

totalcross.sys

The totalcross.sys package contains the utility and usage classes for Virtual Machine. Are they:

  • Convert

  • Setting

  • Time

  • VM

totalcross.unit

The classes responsible for building unit tests are in the totalcross.unit package. The classes are:

  • TestCase

  • TestSuite

  • UIRobot

totalcross.util

Utilities classes

  • Date Hashtable / Vector

  • IntHastable / IntVector

  • Random

  • Collections

  • concurrent.Lock

  • BigDecimal / BigInteger

  • PDFWritter

  • Regex

  • Zip/ZLib/GZip

totalcross.xml

In the package totalcross.xml are the classes responsible for XML handling. They are:

  • XMLRPC com Axis

  • SOAP

  • XMLTokenizer

References

PreviousAPIsNextAPI Rest

Last updated 5 years ago

Was this helpful?

For a better understanding, see the

JSON
Maps
javadoc