Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 292 for getPipe (1.07 sec)

  1. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

            assertThrows(NullPointerException.class, () -> target.unwrap(null));
        }
    
        @Test
        @DisplayName("getPipe, getPipeType, getUncPath delegate to underlying pipe")
        void testBasicAccessors() {
            when(pipe.getPipeType()).thenReturn(0x123456);
            assertSame(pipe, target.getPipe());
            assertEquals(0x123456, target.getPipeType());
            assertEquals("\\\\pipe\\\\my-pipe", target.getUncPath());
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/context/BaseContext.java

                throw new CIFSException("Invalid URL " + url, e);
            }
        }
    
        /**
         *
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#getPipe(java.lang.String, int)
         */
        @Override
        public SmbPipeResource getPipe(final String url, final int pipeType) throws CIFSException {
            try {
                return new SmbNamedPipe(url, pipeType, this);
            } catch (final MalformedURLException e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

        SmbTreeHandleImpl tree;
        @Mock
        SmbFileHandleImpl fd;
        @Mock
        Configuration config;
    
        private SmbPipeInputStream newStreamWithInit(boolean smb2) throws CIFSException {
            when(handle.getPipe()).thenReturn(pipe);
            // init(th) behavior inside SmbFileInputStream constructor
            when(tree.isSMB2()).thenReturn(smb2);
            when(tree.getReceiveBufferSize()).thenReturn(4096);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/SmbPipeHandle.java

     *
     */
    public interface SmbPipeHandle extends AutoCloseable {
    
        /**
         * Gets the pipe resource associated with this handle.
         *
         * @return the pipe
         */
        SmbPipeResource getPipe();
    
        /**
         * Gets the input stream for reading from this pipe.
         *
         * @return this pipe's input stream
         * @throws CIFSException if an error occurs getting the input stream
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbPipeInputStream.java

        /**
         * @param handle
         * @param th
         * @throws SmbException
         */
        SmbPipeInputStream(final SmbPipeHandleImpl handle, final SmbTreeHandleImpl th) throws CIFSException {
            super(handle.getPipe(), th, null);
            this.handle = handle;
        }
    
        /**
         * Ensures that the tree connection is established.
         *
         * @return the tree handle implementation
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/CIFSContext.java

         * @param pipeType
         *            the type of the pipe
         * @return the SMB pipe resource at the specified location
         * @throws CIFSException if the pipe resource cannot be accessed
         */
        SmbPipeResource getPipe(String url, int pipeType) throws CIFSException;
    
        /**
         * Close all connections and release resources associated with this context
         *
         * @return whether any connection was still in use
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/context/AbstractCIFSContextTest.java

            }
    
            @Override
            public Configuration getConfig() {
                return null; // Not relevant for AbstractCIFSContext tests
            }
    
            @Override
            public SmbPipeResource getPipe(String name, int flags) {
                return null; // Not relevant for AbstractCIFSContext tests
            }
    
            @Override
            public SmbResource get(String key) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java

            this.project = project;
    
            artifact.setFile(project.getArtifact().getFile());
            artifact.setResolved(true);
        }
    
        /** {@inheritDoc} */
        @Override
        public File getFile() {
            // we need to get the latest file for the project, not the artifact that was created at one point in time
            return project.getArtifact().getFile();
        }
    
        /** {@inheritDoc} */
        @Override
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/DefaultMavenMetadataCache.java

                    ArtifactRepository localRepository,
                    List<ArtifactRepository> remoteRepositories) {
                File file = artifact.getFile();
                this.artifact = ArtifactUtils.copyArtifact(artifact);
                if ("pom".equals(artifact.getType()) && file != null) {
                    pomHash = file.getPath().hashCode() + file.lastModified();
                } else {
                    pomHash = 0;
                }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

            return pomRepositories;
        }
    
        private boolean hasFile(Artifact artifact) {
            return artifact != null
                    && artifact.getFile() != null
                    && artifact.getFile().exists();
        }
    
        private List<ArtifactRepository> aggregateRepositories(
                List<ArtifactRepository> requestRepositories, List<ArtifactRepository> pomRepositories) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Mar 26 10:49:22 UTC 2025
    - 30.4K bytes
    - Viewed (0)
Back to top