src/main/java/com/mxgraph/util/png/mxPngEncodeParam.java
public synchronized void removeUnsafeToCopyPrivateChunks()
	{
		List<String> newChunkType = new ArrayList<String>();
		List<byte[]> newChunkData = new ArrayList<byte[]>();

		int len = getNumPrivateChunks();
		for (int i = 0; i < len; i++)
		{
			String type = getPrivateChunkType(i);
			char lastChar = type.charAt(3);
			if (lastChar >= 'a' && lastChar <= 'z')
			{
				newChunkType.add(type);
				newChunkData.add(getPrivateChunkData(i));
			}
		}

		chunkType = newChunkType;
		chunkData = newChunkData;
	}
/**
	 * Remove all private chunks associated with this parameter instance
	 * whose 'safe-to-copy' bit is not set.  This may be advisable when
	 * transcoding PNG images.
	 */
Remove all private chunks associated with this parameter instance
whose 'safe-to-copy' bit is not set.  This may be advisable when
transcoding PNG images.
Remove all private chunks associated with this parameter instance whose ' safe - to - copy ' bit is not set . This may be advisable when transcoding PNG images .
public synchronized void removeUnsafeToCopyPrivateChunks()
	{
		List<String> newChunkType = new ArrayList<String>();
		List<byte[]> newChunkData = new ArrayList<byte[]>();
		int len = getNumPrivateChunks();
		for (int i = 0; i < len; i++)
		{
			String type = getPrivateChunkType(i);
			char lastChar = type.charAt(3);
			if (lastChar >= 'a' && lastChar <= 'z')
			{
				newChunkType.add(type);
				newChunkData.add(getPrivateChunkData(i));
			}
		}
		chunkType = newChunkType;
		chunkData = newChunkData;
	}
public synchronized void removeUnsafeToCopyPrivateChunks ( ) { List < String > newChunkType = new ArrayList < String > ( ) ; List < byte [ ] > newChunkData = new ArrayList < byte [ ] > ( ) ; int len = getNumPrivateChunks ( ) ; for ( int i = 0 ; i < len ; i ++ ) { String type = getPrivateChunkType ( i ) ; char lastChar = type . charAt ( 3 ) ; if ( lastChar >= 'a' && lastChar <= 'z' ) { newChunkType . add ( type ) ; newChunkData . add ( getPrivateChunkData ( i ) ) ; } } chunkType = newChunkType ; chunkData = newChunkData ; }
Remove all private chunks associated with this parameter instance
 whose 'safe-to-copy' bit is not set.
Remove all private chunks associated with this parameter instance whose ' safe - to - copy ' bit is not set .