For the purpose of an inquiry by a court under this chapter into any charge against a master, mate or engineer, T he court may sum on him to appear, and shall give him full opportunity of making defense either in person or otherwise. ...