Java Stream Close close(JMXConnector connector)

Here you can find the source of close(JMXConnector connector)

Description

close

License

Open Source License

Declaration

private static void close(JMXConnector connector) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.management.remote.JMXConnector;

import java.io.IOException;

public class Main {
    private static void close(JMXConnector connector) {
        if (connector != null) {
            try {
                connector.close();// w w  w. j  a v a 2s .c  o  m
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}

Related

  1. close(final Object stream)
  2. close(final OutputStream dest)
  3. close(final Scanner scanner)
  4. close(Iterator iterator)
  5. close(java.io.Closeable in)
  6. close(Object obj)
  7. close(Object resource)
  8. close(ObjectInput in)
  9. close(OutputStream in)