在Java中将字符串从ASCII转换为EBCDIC? [英] Convert String from ASCII to EBCDIC in Java?

查看:265
本文介绍了在Java中将字符串从ASCII转换为EBCDIC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要编写一个'简单'的工具来从ASCII转换为EBCDIC?

I need to write a 'simple' util to convert from ASCII to EBCDIC?

Ascii来自Java,Web并转向AS400。我有一个谷歌周围,似乎找不到一个简单的解决方案(也许因为没有一个:()。我希望有一个开源工具或支付已经编写的util。

The Ascii is coming from Java, Web and going to an AS400. I've had a google around, can't seem to find a easy solution (maybe coz there isn't one :( ). I was hoping for an opensource util or paid for util that has already been written.

这样可能吗?

Converter.convertToAscii(String textFromAS400)
Converter.convertToEBCDIC(String textFromJava)

谢谢,

Scott

推荐答案

JTOpen ,IBM的Java工具箱的开源版本有一组用于访问AS / 400对象的类,包括用于访问本机AS400文本文件的FileReader和FileWriter。这可能更容易使用,然后编写自己的转换课程。

JTOpen, IBM's open source version of their Java toolbox has a collection of classes to access AS/400 objects, including a FileReader and FileWriter to access native AS400 text files. That may be easier to use then writing your own conversion classes.

来自JTOpen主页:

From the JTOpen homepage:


这里只是几个您可以使用JTOpen访问许多i5 / OS和OS / 400资源:

Here are just a few of the many i5/OS and OS/400 resources you can access using JTOpen:


  • 数据库 - JDBC(SQL)和记录级访问(DDM)

  • 集成文件系统

  • 程序调用

  • 命令

  • 数据队列

  • 数据区域

  • 打印/假脱机资源

  • 产品和PTF信息

  • 工作和工作日志

  • 消息,消息队列,消息文件

  • 用户和群组

  • 用户空间

  • 系统值

  • 系统状态

  • Database -- JDBC (SQL) and record-level access (DDM)
  • Integrated File System
  • Program calls
  • Commands
  • Data queues
  • Data areas
  • Print/spool resources
  • Product and PTF information
  • Jobs and job logs
  • Messages, message queues, message files
  • Users and groups
  • User spaces
  • System values
  • System status

这篇关于在Java中将字符串从ASCII转换为EBCDIC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆