473,320 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

read abstract workflow from text file and load into ADT

1
How can I read an abstract workflow from a txt file and load it into an ADT? I know my question contains too many things but I'd appreciate if you guide me and tell what the steps are!
May 26 '13 #1
2 2455
Nepomuk
3,112 Expert 2GB
Hi Roham and welcome to bytes.com!

What exactly you'll need depends on the kind of workflow you want to use; generally speaking however you'll need to read the file and interpret it in some fashion.
  1. Reading text files in Java is done with InputStreams, this tutorial should help you getting a grip of them.
  2. Next you'll want to have greater control over what exactly is read; going through the text one character at a time isn't very efficient after all. A great way to do that in Java is with Scanners. Luckily, there's a tutorial for that too!
  3. Finally, you may want to interpret those text files based on structures; regular expressions are great for that. Check this list of tutorials to learn about those.
An alternative to txt files may be xml files; while they may be slightly bigger in file size, there are libraries that make interpreting them much easier than text files.
May 26 '13 #2
Nepomuk
3,112 Expert 2GB
@zeeshanaayan07
Do you mean whether the workflow is in a PDF file? Or whether these instructions for reading files will work for PDF files too?

The above instructions will not work for PDF files, only with plain text files. If you want to work with PDFs you'll need external libraries designed for just that; Apache PDFBox and iText are two such libraries, though I must admit I've never worked with either.
May 26 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: oshna1985 | last post by:
I have a presentation on 5th of August, 2006......so please answer my question as soon as possible.... my question is.... How is Java Programming Language Architectural neutral Distributed ...
1
by: rajbala.3399 | last post by:
Hi all, I have the netbeans IDE5.5 in my system and redhat9.While i run my plugin or beans program in JSP the output you see an image that looks like a small white box with a Red X in it. Or, the...
9
by: khajeddin | last post by:
hi every one: can someone name several websites,which have good tutorial on java programming?
3
by: hmmm | last post by:
I am a user, not a programmer. I arrived at this site because, while researching my problem, someone with a similar problem was referred here. IE 7 Windows XP Pro SP2, all critical updates as...
4
by: NickiWood | last post by:
I am in a beginners Java programming class. So far I am doing ok in the class, although there are some things that I am sure will come in time. Right now we are doing an onging project that started...
1
by: Laurynn | last post by:
Like to share this ebook here: # Ebook O'Reilly - Java Data Access JDBC, JNDI, and JAXP # (Ebook - Pdf - Java) O'Reilly - J2Me In A Nutshell - Decrypted # (ebook) - O'Reilly - Java IO #...
2
by: michaelbraganza63 | last post by:
Java is a programming language originally developed by Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and...
5
by: JavaMas | last post by:
I am a beginner in Java programming after a few lessions I was provided with this task and I have no clue how to go about it.this appears to be simple but for me is a mountain, if any one could help...
3
by: bob2044 | last post by:
Which tool should i use for starting out with java programming?
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.