473,395 Members | 1,473 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,395 software developers and data experts.

problems with MARK,RESET,SKIP methods of Java IO Handling

dmjpro
2,476 2GB
i have been working with IO handling for 3-4 months.
but still i not understood the funda of the three methods ....
MARK,RESET,SKIP provided for IO handling.

plz explain these methods with sample codes.
Regards.
May 8 '07 #1
3 1742
JosAH
11,448 Expert 8TB
i have been working with IO handling for 3-4 months.
but still i not understood the funda of the three methods ....
MARK,RESET,SKIP provided for IO handling.

plz explain these methods with sample codes.
Regards.
What part of those methods (they're typeset in lowercase btw) don't you understand?
Have you read the API documentation?

kind regards,

Jos
May 8 '07 #2
dmjpro
2,476 2GB
yes i read the API document ....
but it would be better if u make me understand in details with sample code.

Thanxxx .....
Regards
May 9 '07 #3
JosAH
11,448 Expert 8TB
yes i read the API document ....
but it would be better if u make me understand in details with sample code.

Thanxxx .....
Regards
Mark and reset work in pairs: you mark a position and supply a buffersize, say n.
You can read at most n characters and optionally reset the reader to the marked
position. If you have read more than n characters the reset fails.

Skipping m characters is similar to reading m characters, they just aren't
returned. Skipping more than n characters causes the reset to fail too.

kind regards,

Jos
May 9 '07 #4

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

Similar topics

0
by: Ralf Hornbeck | last post by:
Hi, I have just uploaded an older PHP project I have written by myself up to my new webserver. On this server PHP is running in version 4.3.2 and this seems to result in some trouble, since the...
2
by: Jon Dellaria | last post by:
I have been using MySql as the database using JSP's and JavaBeans but recently I have wanted to start using the database connection pooling mechanism built into TomCat. I think I am having a...
0
by: Sean Ross | last post by:
Set, Mark, and Apply Decoration Provide a means to set the decoration that will be applied to all marked functions (and maybe classes) within a scope (module, class, or function). For example...
6
by: George McLean | last post by:
Hello, I am trying to isolate some performance issues. The database is DB2 v8.1 running on a Win2000 server with 4 processors and 1gb of RAM. The application is a GIS application that uses...
8
by: deegs_ca | last post by:
So I had my jdbc db28.2 fix pack 9 client running because I had taken the jars from <DB2ROOT>/java folder from Enterprise Edition 8.2 fix pack 9, db2java.zip, db2jcc.zip, and the license jar. ...
3
by: Arun K | last post by:
Hi, I am creating a simple .aspx page to add some fields with validation. I have used different .NET validations like REquiredFieldValidator, RegularExpressionValidator and showed the summary...
0
by: Ken | last post by:
I have an application that requires a server and client. The client seems to be working well, but the server is a beast. A "reset" command is being transmitted to me from the client and I am not...
20
by: Neclepsio | last post by:
Hi everyone. I've made a class Matrix, which contains a pointer to the data and some methods which all return a copy of the matrix modified in some way. The program works quite well for small...
7
by: judge82 | last post by:
please I am learning how to use servlet. here is my code package TestWebApp; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.util.*; public class...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.