Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for StringReader (0.06 sec)

  1. src/bufio/bufio_test.go

    		}
    	case <-time.After(time.Second):
    		t.Error("test timed out (endless loop in ReadByte?)")
    	}
    }
    
    // A StringReader delivers its data one string segment at a time via Read.
    type StringReader struct {
    	data []string
    	step int
    }
    
    func (r *StringReader) Read(p []byte) (n int, err error) {
    	if r.step < len(r.data) {
    		s := r.data[r.step]
    		n = copy(p, s)
    		r.step++
    	} else {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/CopyUtil.java

    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import java.io.OutputStreamWriter;
    import java.io.Reader;
    import java.io.StringReader;
    import java.io.StringWriter;
    import java.io.Writer;
    import java.net.URL;
    import java.nio.ByteBuffer;
    import java.nio.channels.FileChannel;
    
    import org.codelibs.core.exception.IORuntimeException;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 52.4K bytes
    - Viewed (0)
Back to top