Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 80 for ByteArrayInputStream (0.35 sec)

  1. guava-tests/test/com/google/common/io/CloseablesTest.java

     */
    
    package com.google.common.io;
    
    import static org.mockito.Mockito.doThrow;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.verify;
    
    import java.io.ByteArrayInputStream;
    import java.io.Closeable;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.Reader;
    import junit.framework.TestCase;
    
    /**
     * Unit tests for {@link Closeables}.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CountingInputStreamTest.java

     * limitations under the License.
     */
    
    package com.google.common.io;
    
    import static com.google.common.truth.Truth.assertThat;
    import static org.junit.Assert.assertThrows;
    
    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    
    /**
     * Unit tests for {@link CountingInputStream}.
     *
     * @author Chris Nokleberg
     */
    public class CountingInputStreamTest extends IoTestCase {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/ByteStreams.java

        return new ByteArrayDataInputStream(checkNotNull(byteArrayInputStream));
      }
    
      private static class ByteArrayDataInputStream implements ByteArrayDataInput {
        final DataInput input;
    
        ByteArrayDataInputStream(ByteArrayInputStream byteArrayInputStream) {
          this.input = new DataInputStream(byteArrayInputStream);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/HtmlXpathExtractorTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.crawler.extractor.impl;
    
    import java.io.BufferedInputStream;
    import java.io.ByteArrayInputStream;
    import java.io.InputStream;
    
    import org.codelibs.core.io.CloseableUtil;
    import org.codelibs.core.io.ResourceUtil;
    import org.codelibs.fess.crawler.container.StandardCrawlerContainer;
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/XmlUtil.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.crawler.util;
    
    import java.io.ByteArrayInputStream;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    
    import javax.xml.XMLConstants;
    import javax.xml.parsers.SAXParser;
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/CloseablesTest.java

     */
    
    package com.google.common.io;
    
    import static org.mockito.Mockito.doThrow;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.verify;
    
    import java.io.ByteArrayInputStream;
    import java.io.Closeable;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.Reader;
    import junit.framework.TestCase;
    
    /**
     * Unit tests for {@link Closeables}.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/io/CopyUtilTest.java

     */
    package org.codelibs.core.io;
    
    import static org.codelibs.core.io.CopyUtil.copy;
    import static org.hamcrest.CoreMatchers.is;
    import static org.junit.Assert.assertThat;
    
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.File;
    import java.io.InputStream;
    import java.io.Reader;
    import java.io.StringReader;
    import java.io.StringWriter;
    import java.net.URL;
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/mylasta/direction/FessPropTest.java

            final DOMParser parser = new DOMParser();
            final String html = "<html><body>" + text + "</body></html>";
            final ByteArrayInputStream is = new ByteArrayInputStream(html.getBytes("UTF-8"));
            parser.parse(new InputSource(is));
            Node node = parser.getDocument().getFirstChild().getLastChild().getFirstChild();
            return tag.matches(node);
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  9. regression-test/src/androidTest/java/okhttp/regression/LetsEncryptTest.java

     * limitations under the License.
     */
    package okhttp.regression;
    
    import android.os.Build;
    import androidx.test.ext.junit.runners.AndroidJUnit4;
    
    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import java.security.cert.Certificate;
    import java.security.cert.CertificateException;
    import java.security.cert.CertificateFactory;
    import java.security.cert.X509Certificate;
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Nov 17 07:40:31 UTC 2020
    - 6.1K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(Ticker.class, Ticker.systemTicker())
              .put(Stopwatch.class, Stopwatch.createUnstarted())
              // io types
              .put(InputStream.class, new ByteArrayInputStream(new byte[0]))
              .put(ByteArrayInputStream.class, new ByteArrayInputStream(new byte[0]))
              .put(Readable.class, new StringReader(""))
              .put(Reader.class, new StringReader(""))
              .put(StringReader.class, new StringReader(""))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top