调用文本文档 [英] calling a text document

查看:82
本文介绍了调用文本文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用java调用文本文档但不从中读取

how do i call a text document with java but not reading from it

推荐答案

如果您的意思是调用以将文本文件表示为对象。您可以使用File对象,它可以提取文本文件的元数据。和/或者您可以创建自己的对象来表示您需要的数据。



如果您的意思是调用以表示GUI中的文本文件。您需要为前端创建View文件,并在后端创建代表文件的Object。请注意,这可能更复杂,就像您想在程序中应用设计模式和/或体系结构一样。
If you meant ''calling'' as to represent text file as an object. You can use File object which can extract meta-data of your text file. And/Or you can create your own object that represent the data that you need.

If you meant ''calling'' as to represent text file in GUI. you will need to create View for your file for the front-end and Object that represent your file on the back-end. Note that this could be more complex as if you want to apply design pattern and/or architecture on your program.


使用File类的对象..

如果你想在GUI上显示它< browser>使用iframe。
use File class''s object for it..
if u want to display it on GUI<browser> use iframe for it.


这篇关于调用文本文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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