Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//PduUtils is distributed under the terms of the Apache License version 2.0

public class Main {
    public static byte[] encode8bitUserData(String text) {
        try {
            return text.getBytes("ISO8859_1");
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}