Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 31.345.014 Times

Stream::Reader 0.09

  Date Added: October 04, 2010  |  Visits: 1.389


Report Broken Link
Printer Friendly Version

Product Homepage
Download (83 downloads)

Stream::Reader is a stream reader Perl class. SYNOPSIS # Input stream can be reference to TYPEGLOB or SCALAR, output stream # can be the same types or undefined # Constructor $stream = Stream::Reader->new( *IN, { Limit => $limit, BuffSize => $buffsize, Mode => UB } ); # Reading all before delimiter beginning from current position. # Delimiter is SCALAR or reference to array with many SCALARs. # Returns true value on succesfull matching or if end of stream # expected at first time $bool = $stream->readto( $delimiter, { Out => *OUT, Limit => $limit, Mode => AIE } ); # Reading fixed number of chars beginning from current position. # Returns true value if was readed number of chars more then zero or # end of stream was not expected yet $bool = $stream->readsome( $limit, { Out => *OUT, Mode => A } ); # Mode is string, what can contains: # U - modificator for constructor. disable utf-8 checking # B - modificator for constructor. enable second buffer for speed up # case insensitive search # A - modificator for readto() and readsome(). appending data to # output stream, if stream is SCALAR # I - modificator for readto(). enable case insensitive search # E - modificator for readto(). at end of input stream alltimes # returns false value $number = $stream->{Total}; # total number of readed chars $number = $stream->{Readed}; # number of readed chars at last # operation (without matched string # length at readto() method) $number = $stream->{Stored}; # number of succesfully stored chars # at last operation $string = $stream->{Match}; # matched string at last operation # (actually for readto() only) $bool = $stream->{Error}; # error status. true on error METHODS OBJ = Stream::Reader->new( INPUT, { ... Params ... } ) The constructor method instantiates a new Stream::Reader object. INPUT - is a reference to file stream, opened for reading, or reference to defined string. This is an obligatory parameter. Params (all optionaly): Limit - limit size of input stream data in characters. If this parameter is absent, not defined or less then zero, then all data from input stream will be available for reading. BuffSize - size of buffer in characters. If this parameter is absent, not defined or less then zero, then will be used default buffer size 32768 characters. Mode - is string with letters-modificators: B - use second buffer. Can really speed up search in case insensitive mode. U - disable UTF-8 data check in UTF-8 mode. Use this flag if you are absolutely sure, that your UTF-8 data is valid. RESULT = OBJ->readto( DELIMITER, { ... Params ... } ) This method reads all data from input stream before first found delimiter, beginning from current position. RESULT - boolean value. True value if successfuly found delimeter or and of input stream has expected at first time. False value otherwise, or in case of reading error. DELIMETER - is a string-delimeter or reference to array with many delimeters. This is an obligatory parameter and must be defined. Remember! In case of many delimiters, left delimiter alltimes have more priority then right! Params (all optionaly): Out - is a reference to file stream, opened for writing, or reference to string. If this parameter is absent then data will not stored. Limit - size in characters. Defines, the maximum number of characters that must be stored in Out. If this paramter is absent, not defined or less then zero, then this method will be trying to store all readed data. Mode - is string with letters-modificators: A - appendig data to Out if Out is a reference to string. I - search in case insensitive mode. E - at the end of input stream returns only false value. Without this modificator, if end of stream expected at first time, then will be returned true value. RESULT = OBJ->readsome( LIMIT, { ... Params ... } ) This method reads fixed number of characters from input stream beginning from current position. RESULT - boolean value. True value, if any characters were read or end of input stream is not expected yet. False value otherwise, or in case of reading error. LIMIT - limit size in characters, how many it is necessary to read. If this parameter is absent, not defined or less then zero, then will be read all available data from input stream. Params (all optionaly): Out - the same as in readto() method. Mode - is string with letters-modificators: A - the same as in readto() method. Statistics: OBJ->{Total} - total number of readed characters. Warning! This module using block reading and real position in stream is different. OBJ->{Readed} - number of readed characters at last operation (without matched string length at readto() method). OBJ->{Stored} - number of succesfully stored chars at last operation OBJ->{Match} - matched string at last operation (actually for readto() only) OBJ->{Error} - boolen error status. At any reading erorrs all operations will be stopes and this flag turned to true value..

Requirements: No special requirements
Platforms: Linux
Keyword: End Of End Of Input In Case In Case Of Input Stream Number Obj Reference To Result Scalar Stream Streamreader True Value Utf Will Be
Users rating: 0/10

License: Freeware Size: 6.14 KB
Games  -  2048 Endless Edition 1.0
SIMPLE FUN AND ADDICTIVE GAME!!! Swipe to move the TILES! They can go right, left, up or down. When two tiles with the same number touch, they merge into one with a new value which will be the sum of these two...
6.3 MB  
Entertainment  -  Halloween 2012: All-in-One Box 1.0.2
*** FREE for a limited amount of downloads. To celebrate Halloween, the next 10,000 downloads will be FREE before it goes back to $0.99 *** Halloween 2011: All-in-One Box combines FOUR must have Halloween apps into one to make your...
5.1 MB  
Hard Drive Cleaners  -  Duplicate Office File Remover Free 1.8
This simple program is designed to find and remove duplicate Office files. It will be particularly useful in cases where the computer is often used for certain applications of MS Office package. Moulded these applications over time files...
22.62 MB  
Networking  -  Nofollow Case by Case
Plugin Features: * Follow Plugin for WordPress (all comment links are real links by default). * Strip nofollow from comment links, comment author links, pingbacks and trackbacks (default). * Selectively apply nofollow to any comment link you do...
10 KB  
Utilities  -  7 to 8 1.1
With 7 to 8 from Mauritius Telecom, we will be bringing to you a number of services which will be helping you in your day to day activities. The first service that we will be starting would be the 7 to 8-Digit mobile number converter. On...
2.6 MB  
Business  -  EBHC International Joint Conference 2013 1.0
GIMBE Foundation and the International Society for Evidence-based Health Care are delighted to present the EBHC International Joint Conference, that will be held in Taormina from the 30th October to the 2nd November 2013. The focus of the...
8.9 MB  
Business  -  Experteer - your executive job search 1.0
Hundreds of executive positions are filled every day on Experteer. Don't you also want to find out what your next career move will look like? At Experteer you will discover executive jobs in the US starting from $100,000 - and get access to...
3.3 MB  
Entertainment  -  DecideForMe
all of were in a confusion that what to decide at a particular instant. this app will be helpful in fulfilling those thing. like to decide yes or no? right or wrong? etc. just click on which thing do u want and then on "decide for me" it...
1024 KB  
Entertainment  -  Feel lucky?
A very simple 'Feel lucky?' app, created just for fun! This can be used in a meeting to show the 'unlucky' guy. Pass it on from one to another, press the pistol button, and luck will be on your side or make fun of you. You have 1 out of 6...
1024 KB  
Entertainment  -  Jai Ganesha
This application helps Ganesha devotees to worship.. Following are salient features: - This app will be installed in your Memory Card - Ganesha Aarti is a devotional song based on Lord Ganesha as the model devotee. - Collection of Lord...
3 MB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.13.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB