uristream.cpp revision 153bb1867986d6db392e2cfa711ad6231fce8abe
321N/A * Phoebe DOM Implementation. 321N/A * This is a C++ approximation of the W3C DOM model, which follows 1356N/A * fairly closely the specifications in the various .idl files, copies of 321N/A * which are provided for reference. Most important is this one: 919N/A * Copyright (C) 2005-2008 Bob Jamison 919N/A * This library is free software; you can redistribute it and/or 919N/A * modify it under the terms of the GNU Lesser General Public 919N/A * License as published by the Free Software Foundation; either 919N/A * version 2.1 of the License, or (at your option) any later version. 919N/A * This library is distributed in the hope that it will be useful, 919N/A * but WITHOUT ANY WARRANTY; without even the implied warranty of 919N/A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 919N/A * Lesser General Public License for more details. 321N/A * You should have received a copy of the GNU Lesser General Public 321N/A * License along with this library; if not, write to the Free Software 321N/A * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 1408N/A//######################################################################### 493N/A//# U R I I N P U T S T R E A M / R E A D E R 321N/A//######################################################################### //get information from uri //printf("in data:'%s'\n", data.c_str()); * Returns the number of bytes that can be read (or skipped over) from * this input stream without blocking by the next caller of a method for * Closes this input stream and releases any system resources * associated with the stream. * Reads the next byte of data from the input stream. -1 if EOF //######################################################################### //# U R I O U T P U T S T R E A M / W R I T E R //######################################################################### //get information from uri //printf("out schemestr:'%s' scheme:'%d'\n", schemestr, scheme); //printf("out path:'%s'\n", cpath); * Closes this output stream and releases any system resources * associated with this stream. * Flushes this output stream and forces any buffered output * bytes to be written out. * Writes the specified byte to this output stream. unsigned char uch = (
unsigned char)(
ch &
0xff);
//fwrite(uch, 1, 1, outf); //######################################################################### //#########################################################################