import java.io.IOException;
import java.io.OutputStream;
import java.util.List;
+import jp.sourceforge.mikutoga.binio.IllegalTextExportException;
import jp.sourceforge.mikutoga.pmd.Deg3d;
import jp.sourceforge.mikutoga.pmd.Rad3d;
import jp.sourceforge.mikutoga.pmd.RigidShapeType;
throws IOException, IllegalPmdException{
super.dumpPmdModel(model);
- dumpRigidList(model);
- dumpJointList(model);
+ try{
+ dumpRigidList(model);
+ dumpJointList(model);
+ }catch(IllegalTextExportException e){
+ throw new IllegalPmdException(e);
+ }
return;
}
* @throws IllegalPmdTextException 長すぎる剛体名
*/
private void dumpRigidList(PmdModel model)
- throws IOException, IllegalPmdTextException{
+ throws IOException, IllegalTextExportException{
List<RigidInfo> rigidList = model.getRigidList();
int rigidNum = rigidList.size();
dumpInt(rigidNum);
* @throws IllegalPmdTextException 長すぎる剛体名
*/
private void dumpRigid(RigidInfo rigid)
- throws IOException, IllegalPmdTextException{
+ throws IOException, IllegalTextExportException{
String rigidName = rigid.getRigidName().getPrimaryText();
dumpText(rigidName, PmdLimits.MAXBYTES_RIGIDNAME);
* @throws IllegalPmdTextException 長すぎるジョイント名
*/
private void dumpJointList(PmdModel model)
- throws IOException, IllegalPmdTextException{
+ throws IOException, IllegalTextExportException{
List<JointInfo> jointList = model.getJointList();
int jointNum = jointList.size();
dumpInt(jointNum);
* @throws IllegalPmdTextException 長すぎるジョイント名
*/
private void dumpJoint(JointInfo joint)
- throws IOException, IllegalPmdTextException{
+ throws IOException, IllegalTextExportException{
String jointName = joint.getJointName().getPrimaryText();
dumpText(jointName, PmdLimits.MAXBYTES_JOINTNAME);